Can anybody help with this apparent bug? I experimented with using <http:endpoint> instead of <http:soap-*> and the wsdl service location value is being rewritten properly as well as the locationURI value of the consumer. So this might be a bug with the http:soap endpoints. I hope this could be fixed quickly as I really want to use the http:soap-* components.
angeloNZ wrote: > > Hi, > > I'm experiencing a strange behavior on how the URL of my services are > being rewritten when running ServiceMix 3.3 on Tomcat. > > In xbean.xml I have this definition: > <http:soap-consumer service="treis:FeedServiceConsumer" > endpoint="FeedServiceConsumerPort" > > > locationURI="http://localhost:8080/SOAP/FeedService/" > targetService="treis:CamelSOAPService" > wsdl="classpath:TreisFeedServiceConsumer.wsdl"> > </http:soap-consumer> > > here's an excerpt from TreisFeedServiceConsumer.wsdl: > <wsdl:service name="FeedServiceConsumer"> > <wsdl:port binding="impl:FeedServiceConsumerPortBinding" > name="FeedServiceConsumerPort"> > <wsdlsoap:address > location="http://localhost:8080/SOAP/FeedService"/> > </wsdl:port> > </wsdl:service> > > I've renamed apache-servicemix-web-3.3.war to info.war to change the > context path. I can then see the list of exposed services via > http://localhost:8080/info/jbi. In this page I can see that my > soap-consumer endpoint is being displayed as > http://localhost:8080/info/jbi/SOAP/FeedService/ which is what I expected. > > However, when I view the wsdl by clicking on the link and then check the > value of the "location" attribute I noticed that it wasn't rewritten. It > remained as "http://localhost:8080/SOAP/FeedService". > > I was expecting it to be http://localhost:8080/info/jbi/SOAP/FeedService. > This is a problem as requests are sent to the wrong endpoint. > > Any idea why this is happening? Would editing the wsdl file with the > correct 'location" value after I've > deployed the service assembly be a workaround for this? Thanks for your > inputs. > > As an experiment, I changed my xbean's locationUri value to > "http://localhost:8080/info/jbi/SOAP/FeedService". After redeploying and > checking the jbi page the link shows as > "http://localhost:8080/info/jbi/info/jbi/SOAP/FeedService" where > "info/jbi" was repeated. Oddly enough, when I checked the wsdl, the > location value is now correct: > > http://localhost:8080/info/jbi/SOAP/FeedService. > > What is going on? > > > > > > -- View this message in context: http://www.nabble.com/WSDL-service-location-not-being-rewritten-for-http%3Asoap-*-on-Tomcat.-tp23957752p24012937.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
