pub.client:http and error 500

Hi.

My problem is next:
I post xml to server using the public.client:HTTP service.
(I mapped xml to data->string parameter), and after calling this service, i get the Internal error 500 from server. But, when I try this xml in browser(dropp it manually, if i may say like that)- it works.
Can anyone give me some help?

I found what is happening:
this is html:

 <html>
   <head>
      <title>Test</title>
   </head>
   <body>            
      <form action="http://something" method="post">
<table>
  <tr>
     <td><input type="hidden" name="productId" value="1000"></td>
     <td><textarea id="XMLRequest" type="text" cols="80" rows="10" name="XMLRequest">


<!DOCTYPE smth SYSTEM "http://something.dtd">
<smth productID="1000">
  <user>
    <Address name="XXX">
      <Country>YYY</Country>
    </Address>
  </user>
</smth>
</textarea>
</td>
</tr>
<tr><td><input name="Validate" type="submit" value="OK"></td></tr>
</table>
</form>
   </body>
</html>

content between tags - i made that request in code and passing it to data->string in pub.client:HTTP, but how can I make blue part of this html in webMethods?
do I need to use some of MIME services or what?

You need to change the name of your textarea from “XMLRequest” to “xmldata”

I think you may have misunderstood the question–the HTML is being sent from IS to an HTTP server somewhere. The name of the textarea field needs to be what that server expects, not what IS would expect.

MIME services are not needed.

You can hard-code the HTML text and use various string techniques to plug in the variable portion. You could also use templates. Refer to the IS and Developer documentation.

I managed to make that, but I get this in my WM code:
[URL=“http://something?productID=1000&XMLRequest=<%3Fxml+version%3D"1.0"+encoding%3D"ISO-8859-2"%3F> <!DOCTYPE+PoiRequest+SYSTEM+“http%3A%2F%2Fsomething%2Fb2b2c%2Fdtd%2Fsmth.dtd”> <PoiRequest+productID%3D"121275"> ++<InternalPoiList> ++++<AddressPoi+name%3D"21+Road"> ++++++<CountryCode>GBR<%2FCountryCode> ++++++<City>Berkshire<%2FCity> ++++++<Address>21+Road<%2FAddress> ++++++<ZIPCode>RG40+2NP<%2FZIPCode> ++++<%2FAddressPoi> ++<%2FInternalPoiList> <%2FPoiRequest>”]http://something?productID=1000&XMLRequest=<%3Fxml+version%3D"1.0"+encoding%3D"ISO-8859-2"%3F> <!DOCTYPE+PoiRequest+SYSTEM+“http%3A%2F%2Fsomething%2Fb2b2c%2Fdtd%2Fsmth.dtd”> <PoiRequest+productID%3D"121275"> ++<InternalPoiList> ++++<AddressPoi+name%3D"21+Road"> ++++++<CountryCode>GBR<%2FCountryCode> ++++++<City>Berkshire<%2FCity> ++++++<Address>21+Road<%2FAddress> ++++++<ZIPCode>RG40+2NP<%2FZIPCode> ++++<%2FAddressPoi> ++<%2FInternalPoiList> <%2FPoiRequest>[/URL]

but, I get the error 500.
the url it should be:
[URL=“http://something?productId=121275&XMLRequest=<%3Fxml+version%3D"1.0"+encoding%3D"ISO-8859-2"%3F> <!DOCTYPE+PoiRequest+SYSTEM+“http%3A%2F%2Fsomething%2Fb2b2c%2Fdtd%2Fsmth.dtd”> <PoiRequest+productID%3D"121275"> ++<InternalPoiList> ++++<AddressPoi+name%3D"21+Road"> ++++++<CountryCode>GBR<%2FCountryCode> ++++++<City>Berkshire<%2FCity> ++++++<Address>21+Road<%2FAddress> ++++++<ZIPCode>RG40+2NP<%2FZIPCode> ++++<%2FAddressPoi> ++<%2FInternalPoiList> <%2FPoiRequest> ++ &Validate=OK”]http://something?productId=121275&XMLRequest=<%3Fxml+version%3D"1.0"+encoding%3D"ISO-8859-2"%3F> <!DOCTYPE+PoiRequest+SYSTEM+“http%3A%2F%2Fsomething%2Fb2b2c%2Fdtd%2Fsmth.dtd”> <PoiRequest+productID%3D"121275"> ++<InternalPoiList> ++++<AddressPoi+name%3D"21+Road"> ++++++<CountryCode>GBR<%2FCountryCode> ++++++<City>Berkshire<%2FCity> ++++++<Address>21+Road<%2FAddress> ++++++<ZIPCode>RG40+2NP<%2FZIPCode> ++++<%2FAddressPoi> ++<%2FInternalPoiList> <%2FPoiRequest> [COLOR=red]++ &Validate=OK[/color][/URL]

the difference is %0D in first url is missing… and part in red also missing.
How can I fixed this to don’t get response from http - 500? So, when i post data in browser i get succesfully result (second url ), but i get err0r 500 in webMethods(and pub.client:http returns me first url)

Have you checked with the site that you’re connecting to to see if they’ve logged any specific errors?

I doubt that the 0D chars are an issue (carriage returns).

What may be an issue is the missing Validate field. You’ll need to modify the creation of the URL, however you’re achieving that.