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:
http://something?productID=1000&XMLRequest=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22ISO-8859-2%22%3F%3E%0A%3C%21DOCTYPE+PoiRequest+SYSTEM+%22http%3A%2F%2Fsomething%2Fb2b2c%2Fdtd%2Fsmth.dtd%22%3E%0A%3CPoiRequest+productID%3D%22121275%22%3E%0A++%3CInternalPoiList%3E%0A++++%3CAddressPoi+name%3D%2221+Road%22%3E%0A++++++%3CCountryCode%3EGBR%3C%2FCountryCode%3E%0A++++++%3CCity%3EBerkshire%3C%2FCity%3E%0A++++++%3CAddress%3E21+Road%3C%2FAddress%3E%0A++++++%3CZIPCode%3ERG40+2NP%3C%2FZIPCode%3E%0A++++%3C%2FAddressPoi%3E%0A++%3C%2FInternalPoiList%3E%0A%3C%2FPoiRequest%3E

but, I get the error 500.
the url it should be:
http://something?productId=121275&XMLRequest=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22ISO-8859-2%22%3F%3E%0D%0A%3C%21DOCTYPE+PoiRequest+SYSTEM+%22http%3A%2F%2Fsomething%2Fb2b2c%2Fdtd%2Fsmth.dtd%22%3E%0D%0A%3CPoiRequest+productID%3D%22121275%22%3E%0D%0A++%3CInternalPoiList%3E%0D%0A++++%3CAddressPoi+name%3D%2221+Road%22%3E%0D%0A++++++%3CCountryCode%3EGBR%3C%2FCountryCode%3E%0D%0A++++++%3CCity%3EBerkshire%3C%2FCity%3E%0D%0A++++++%3CAddress%3E21+Road%3C%2FAddress%3E%0D%0A++++++%3CZIPCode%3ERG40+2NP%3C%2FZIPCode%3E%0D%0A++++%3C%2FAddressPoi%3E%0D%0A++%3C%2FInternalPoiList%3E%0D%0A%3C%2FPoiRequest%3E%0D%0A++%0D%0A%0D%0A&Validate=OK

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.