Weird.
I have change some things wrt soap handling.
I will deploy new snapshots tomorrow.
Cheers,
Guillaume Nodet
On 6/8/06, Eric Dofonsou <[EMAIL PROTECTED]> wrote:
I did, here is the code I use to generate the
endpoints (copied from a test example) :
-------
HttpEndpoint provider = new HttpEndpoint();
provider.setService(new QName("urn:provider",
"http"));
provider.setEndpoint("provider");
//provider.setTargetService(new
QName("urn:test", "echo"));
//provider.setTargetEndpoint("echo");
provider.setLocationURI("http://localhost:8080/");
provider.setRoleAsString("provider");
provider.setSoap(true);
provider.setSoapVersion("1.1");
//provider.setWsdlResource(new
ClassPathResource("Retailer.wsdl"));
provider.setDefaultMep(URI.create("http://www.w3.org/2004/08/wsdl/in-out
"));
provider.setSoap(false);
HttpEndpoint consumer = new HttpEndpoint();
consumer.setService(new QName("urn:consumer",
"http"));
consumer.setEndpoint("consumer");
consumer.setTargetService(new
QName("urn:provider", "http"));
consumer.setTargetEndpoint("provider");
consumer.setLocationURI("http://localhost:8193/ep1/");
consumer.setRoleAsString("consumer");
consumer.setSoap(true);
consumer.setSoapVersion("1.1");
consumer.setWsdlResource(new
ClassPathResource("Retailer.wsdl"));
consumer.setDefaultMep(URI.create("http://www.w3.org/2004/08/wsdl/in-out
"));
consumer.setSoap(true);
HttpSpringComponent http = new
HttpSpringComponent();
http.setEndpoints(new HttpEndpoint[] {
consumer, provider }); //, ep2, ep3 });
container.activateComponent(http, "http1");
-----------
--- Guillaume Nodet <[EMAIL PROTECTED]> wrote:
> I guess you forgot to specifiy that the deployed
> http endpoint was soap
> enabled.
> Just add soap="true" on the endpoint definition.
>
> AFAIK i have fixed the other problem regarding wsdl
> imports.
>
> Cheers,
> Guillaume Nodet
>
> On 6/8/06, Eric Dofonsou <[EMAIL PROTECTED]>
> wrote:
> >
> >
> >
> > Hello
> >
> > In doing my test program for the WS-i compliance,
> I've
> > found another issue with the way servicemix
> handles
> > soap message with a header block (see end of
> message)
> > :
> >
> > I get an exception about soap headers not found
> when
> > trying to send the soap message via the bus to wsi
> > compliant web service :
> > -----
> > 2006-06-08 11:25:49,272 [pool-2-thread-2] ERROR
> > HttpSpringComponent - Error processing
> > exchange MessageExchange[
> > id: ID:erd-ubuntu-49894-1149780325795-2:0
> > status: Active
> > role: provider
> > service: {urn:provider}http
> > endpoint: provider
> > operation:
> > {
> >
>
http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl}submitOrder
> > in: <?xml version="1.0"
> > encoding="UTF-8"?><ns1:submitOrder
> > xmlns:ns1="
> >
>
http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl
> > "
> >
>
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><PartsOrder
> > xmlns:p="
> >
>
http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailOrder.xsd
> >
>
"><p:Item><p:productNumber>605006</p:productNumber><p:quantity>182</p:quantity><p:price>
> > 3.99
> >
>
</p:price></p:Item><p:Item><p:productNumber>605002</p:productNumber><p:quantity>4</p:quantity><p:price>
> > 3.99
> >
>
</p:price></p:Item><p:Item><p:productNumber>605003</p:productNumber><p:quantity>82</p:quantity><p:price>
> >
> 7.99</p:price></p:Item></PartsOrder><CustomerDetails
> > xmlns:c="
> >
>
http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailOrder.xsd
> >
> "><c:custnbr>ABCD999999999EFG</c:custnbr><c:name>Joe
> >
> >
>
Bloggs</c:name><c:street1/><c:city/><c:state>NH</c:state><c:zip>03870</c:zip><c:country>USA</c:country></CustomerDetails></ns1:submitOrder>
> > ]
> > java.lang.IllegalStateException: SOAP headers
> found on
> > non-soap message
> > at
> >
>
org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(
> > SoapWriter.java:102)
> > at
> >
>
org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:82)
> > at
> >
>
org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(
> > ProviderProcessor.java:218)
> > at
> >
>
org.apache.servicemix.http.processors.ProviderProcessor.process(
> > ProviderProcessor.java:112)
> > at
> >
>
org.apache.servicemix.common.BaseLifeCycle.processExchange(
> > BaseLifeCycle.java:390)
> > at
> >
>
org.apache.servicemix.common.BaseLifeCycle$2.run(BaseLifeCycle.java:247)
> > at
> >
> >
>
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask
> > (ThreadPoolExecutor.java:650)
> > at
> >
> >
>
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
> > (ThreadPoolExecutor.java:675)
> > at java.lang.Thread.run(Thread.java:595)
> > 2006-06-08 11:25:49,562 [pool-2-thread-2] DEBUG
> > DeliveryChannelImpl - Sent:
> > MessageExchange[
> > -----
> >
> > so is this a bug should I raise a Jira ?
> > Hoo and Guillaume, I forgot to open a jira for the
> > import in wsdl bug i've mentionned a few weeks ago
> to
> > you do you still want me to open a jira for that
> too ?
> >
> > ----
> > <SOAP-ENV:Envelope
> >
> >
>
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> > <SOAP-ENV:Header>
> > <h:Configuration
> >
> > xmlns:h="
> >
>
http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd
> > ">
> >
> <h:UserId>[EMAIL PROTECTED]</h:UserId>
> > <h:ServiceUrl
> Role="LoggingFacility">
> >
> > http://example1/SampleApp/SCM/LoggingFacility
> > </h:ServiceUrl>
> > <h:ServiceUrl
> Role="Retailer">
> >
> > http://example2/wsi/soaprpc/wsi/RetailerImpl
> > </h:ServiceUrl>
> > <h:ServiceUrl
> Role="WarehouseA">
> >
> > http://example3/wsi/soaprpc/wsi/WarehouseAImpl
> > </h:ServiceUrl>
> > <h:ServiceUrl
> Role="WarehouseB">
> >
> > http://example4/wsi/soaprpc/wsi/WarehouseBImpl
> > </h:ServiceUrl>
> > <h:ServiceUrl
> Role="WarehouseC">
> >
> > http://example5/wsi/soaprpc/wsi/WarehouseCImpl
> > </h:ServiceUrl>
> > <h:ServiceUrl
> Role="ManufacturerA">
> >
> http://example6/ws-i_sample/ManufacturerA
> > </h:ServiceUrl>
> > <h:ServiceUrl
> Role="ManufacturerB">
> >
> http://example7/ws-i_sample/ManufacturerB
> > </h:ServiceUrl>
> > <h:ServiceUrl
> Role="ManufacturerC">
> >
> http://example8/ws-i_sample/ManufacturerC
> > </h:ServiceUrl>
> > </h:Configuration>
> > </SOAP-ENV:Header>
> > <SOAP-ENV:Body>
> > <ns1:submitOrder
> >
> > xmlns:ns1="
> >
>
http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl
> > ">
> > <PartsOrder
> >
> > xmlns:p="
> >
>
http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailOrder.xsd
> > ">
> > <p:Item>
> >
> >
> <p:productNumber>605006</p:productNumber>
> >
> <p:quantity>182</p:quantity>
> >
> <p:price>3.99</p:price>
> > </p:Item>
> > <p:Item>
> >
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com