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]
        at
com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:628)
        at
com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2021)
        at
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1927)
        at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1054)
        at
javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.java:59)
        at
org.apache.servicemix.jbi.jaxp.ExtendedXMLStreamReader.next(ExtendedXMLStreamReader.java:60)
        at
org.apache.servicemix.jbi.jaxp.ExtendedXMLStreamReader.nextTag(ExtendedXMLStreamReader.java:43)
        at
org.apache.servicemix.soap.marshalers.SoapReader.readSoapUsingStax(SoapReader.java:154)
        at
org.apache.servicemix.soap.marshalers.SoapReader.read(SoapReader.java:82)
        at
org.apache.servicemix.soap.marshalers.SoapReader.read(SoapReader.java:73)
        at
org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:173)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:593)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)




-- 
View this message in context: 
http://www.nabble.com/question-about-http-provider-tf3846635s12049.html#a10949784
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to