Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Element or attribute do not match QName production: QName::=(NCName':')?NCName
- import javax.xml.namespace.QName;
- import org.apache.axis.client.Call;
- import org.apache.axis.client.Service;
- public class TestClient {
- public static void main(String [] args)
- {
- try{
- String endpoint = "http://localhost:8080/TestWebService/services/DoesMagic";
- Service service = new Service();
- Call call = (Call) service.createCall();
- call.setTargetEndpointAddress( new java.net.URL(endpoint) );
- call.setOperationName( new QName("http://testPackage.fc.com/, doBasicStuff") );
- String ret = (String) call.invoke( new Object[] {"some kind of message"} );
- System.out.println(ret);
- }catch(Exception e){
- System.err.println(e.toString());
- }
- }
- }
- public String doBasicStuff(String message)
- {
- return "This is your message: " + message;
- }
- new QName("http://testPackage.fc.com/, doBasicStuff")
- new QName("http://testPackage.fc.com/", "doBasicStuff")
- new QName("http://testPackage.fc.com/, doBasicStuff")
- public QName(String localPart) or
- public QName(final String namespaceURI, final String localPart)
Add Comment
Please, Sign In to add comment