can I try the new snapshot ?
--- Guillaume Nodet <[EMAIL PROTECTED]> wrote:
> 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
> > > >
> > >
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com