I'm unsure if you're using Axis2 or Axis1--I'm assuming the former because
you're a newbie and there's little reason to start off with the old product.

As for (1) below, the binding name should be changeable if and only if the
binding's name in the wsdl:binding section also changed--did that occur? 
Otherwise, I'm puzzled how this could happen.

As for (2) below, it is normal and appropriate for the soap:address location
to be changed based on other parameters passed in and/or the eventual hosted
location of the web service.  That's part of the JAX-WS spec.  See here for
more details (for CXF and Metro): 
http://www.jroller.com/gmazza/entry/creating_a_wsdl_first_web1#notes (note
#2)

Finally, you may want to wean WSDL generation away from the IDE and rely on
Ant or Maven to do the same instead--I think you'll find it easier over the
long run: http://www.jroller.com/gmazza/entry/soap_client_with_axis2

Glen


stupidtss wrote:
> 
> I am a newbie to web services.
> 
> I import an wsdl into Eclipse with the "wsdl:service" section copied at
> below:
> 
> <wsdl:service name="SPOC">
> <wsdl:port name="SPOCPort" binding="SPOC:SPOCSOAPBinding">
> <soap:address location="http:spoc-server/SPOC"/>
> </wsdl:port>
> </wsdl:service>
> 
> I then generate the web services against this wsdl in Eclipse (the
> "emitter" is the default built-in Axis 1.4). After adding some business
> logic, the web services is deployed to Jboss and everything is working
> fine, except that the wsdl exposed has been changed.
> 
> <wsdl:service name="SPOC">
> <wsdl:port binding="impl:SPOCPortSoapBinding" name="SPOCPort">
> <soap:address location="https:192.168.95.134:8443/SPOC/services/SPOCPort"/
> >
> </wsdl:port>
> </wsdl:service>
> 
> Eclipse has inrtroduced two unexpected changes:
> (1) changing the port binding from "SPOC:SPOCSOAPBinding" to
> "impl:SPOCPortSoapBinding";
> (2) changing the latter portion of soap address location from " ... /SPOC"
> to " ... /SPOC/services/SPOCPort".
> 
> Since, in this project, the format of wsdl is standardised and I should
> strictly follow the standards, is there any way to change the wsdl back in
> the desired format?
> 
> Thanks everyone. 
> 

-- 
View this message in context: 
http://old.nabble.com/wsdl%3Aservice-and-port-name-changed-by-Axis---eclipse-tp26568618p26570026.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to