Well, I finally was able to send a message from an http provider to my web
service inside of service mix. Oddly enough, the only way it seemed to work
is if I set soap="false" in my provider and just sent the exact SOAP request
with all the headers and formatting already finished.
I get the correct response from the web service, but the http provider does
not parse the SOAP response. It leaves the message with all the SOAP
headers. I guess this is b/c I set soap="false" in the provider. Ideally,
I'd like it to be already parsed, but no matter what I try, I can't get the
http provider to format a SOAP request.
Benamin wrote:
>
>
>
> bsnyder wrote:
>>
>>
>>>>
>>>> ERROR - HttpComponent - Error processing exchange
>>>> InOut[
>>>> id: ID:massive-47158-1180962021093-11:0
>>>> status: Active
>>>> role: provider
>>>> service: {http://tapestry.cgi.com/smix}NSRService
>>>> endpoint: myProvider
>>>> in: <?xml version="1.0" encoding="UTF-8"?><hello>Testing</hello>
>>>> ]
>>>> com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
>>>> at [row,col {unknown-source}]: [1,0]
>>
>>> This error usually means that you have extraneous characters in the
>>> prolog - notice it says row 1, column 0. In my experience, this can
>>> be, and oftentimes is, invisible characters in the prolog.
>>
>>
>
> The prolog in this case is being added by ServiceMix when I make a call to
> sendSync, such as
>
> in.setContent(new StringSource("<hello>Testing</hello>"));
> exchange.setInMessage(in);
> sendSync(exchange);
>
> So I am not seeing how extraneous characters are getting added in.
>
>
--
View this message in context:
http://www.nabble.com/question-about-http-provider-tf3846635s12049.html#a11010767
Sent from the ServiceMix - User mailing list archive at Nabble.com.