On 6/4/07, Benamin <[EMAIL PROTECTED]> wrote:



bsnyder wrote:
>
> On 5/31/07, Benamin <[EMAIL PROTECTED]> wrote:
>>
>> If an http provider is supposed to automatically transform a request into
>>> SOAP based on its xbean, then what should a message be formatted as when
>>> sent to the http provider?
>>>
>>> For example, suppose the http provider is supposed to request some web
>>> service that provides an operation that accepts an SSN and returns a
>>> person's information.  Would you just send the http provider a
>>> normalized
>>> message that contains the name with no SOAP headers?
>
>>Yes, I believe you would send XML that the servicemix-http provider
>>will wrap in a SOAP format so that it is formatted correctly when the
>>proxied web service receives it.
>
> Bruce
>
>

Yes, I would have thought that.  I have tried to send some test xml
(<hello>Testing</hello>) to an http provider, but the http provider gives me
an exception.  Any ideas?

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.

Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Reply via email to