On 9/5/07, hotcool <[EMAIL PROTECTED]> wrote: > > > thank you for your reply! > > I have done what you said ! > > when i bulid a http web service using soap over http using servicemix ,I > have created http consumer su.http provider su. sa. Also a http > client(exactly it is a client.html),a web service. > > I sent a soap message in the http client.the http consumer accept is and > sent it to NMR. > in the http provider(exactly in the xbean.xml) i can set the attribute > locationURI to the web service binding address which is defined in the wsdl > file! > > for example: > > <beans xmlns:http="http://servicemix.apache.org/http/1.0" > xmlns:foo="http://servicemix.apache.org/http2http"> > > <http:endpoint service="foo:httpProvider" > endpoint="httpProvider" > role="provider" > locationURI="http://localhost:8000/axis2/services/SayHello" > defaultMep="http://www.w3.org/2004/08/wsdl/in-out" > /> > > </beans> > this can be successful! > > but when i build a JMS Web service using SOAP over JMS,I creat a jms > client.it sent jms message to a topic or a queue. the jms consumer can get > it by set a attribute (suce as jmsProviderDestinationName="queue/A" > ) > but how can the web service get the jms message if there is no locationURI > attribute as the http provider ! > the wsdl file look as(not the total file,just a part ): > 35 <service name="StockQuoteService"> > 36 <documentation>My first service</documentation> > 37 <port name="StockQuotePort" binding="tns:StockQuoteSoapBinding"> > 38 <wsdl11soap11:address > location="http://example.com/stockquote"/> > 39 </port> > 40 <port name="StockQuotePort_jms" > binding="tns:StockQuoteSoapJMSBinding"> > 41 <wsdl11soap11:address > location="jms:myQueue?targetService=stockquote"/> > 42 </port> > 43 </service>
Well the locationURI is, in fact, a property in the HttpEndpoint class. What version of ServiceMix are you using? Below is the source to that class from the trunk (3.2-SNAPSHOT): http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java?view=markup Just search for it and you'll see it. Please post the stack trace so I can see exactly what is happening when you send the message. -- perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" );' Apache ActiveMQ - http://activemq.org/ Apache ServiceMix - http://servicemix.org/ Apache Geronimo - http://geronimo.apache.org/ Castor - http://castor.org/
