I'm trying to connect to a JAX-WS web service served from GlassFish.
What JAX-WS API version does Axis2 1.3 support? I was hoping it would
be listed in the manifest.mf in axis2-jaxws-api-1.3.jar, but it isn't.
The attached client code works in that it retrieves the wsdl from the
classpath, but then it gets the schema from the server. How would I
make it resolve the schema on the classpath also?
This gets logged to the console:
Retrieving document at
'file:/D:/projects-nb/Axis2-Test/build/classes/com/fluke/metbase/soap/client/EchoSoapImpl.wsdl.xml'.
Retrieving schema at
'http://localhost:8080/EchoSoapService/EchoSoapImpl?xsd=1', relative
to
'file:/D:/projects-nb/Axis2-Test/build/classes/com/fluke/metbase/soap/client/EchoSoapImpl.wsdl.xml'.
echo string: hello
Cameron
package com.fluke.metbase.soap.client;
import com.fluke.metbase.soap.EchoSoap;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
public class TryEchoService3 {
public static void main(String[] args) throws Exception{
// URL wsdl = new URL("http://localhost:8080/EchoSoapService/EchoSoapImpl?wsdl");
URL wsdl = new URL(TryEchoService3.class.getResource("."),"EchoSoapImpl.wsdl.xml");
QName serviceName = new QName("http://soap.metbase.fluke.com/","EchoSoapService");
Service ws = Service.create(wsdl, serviceName);
EchoSoap echoService = ws.getPort(EchoSoap.class);
String s = echoService.echoString("hello");
System.out.printf("echo string: %s", s);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]