pub.client:http and error 500


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:

      <form action="http://something" method="post">
     <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">
    <Address name="XXX">
<tr><td><input name="Validate" type="submit" value="OK"></td></tr>

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:

but, I get the error 500.
the url it should be:

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.