johvargas / sfdc-wsc

Automatically exported from code.google.com/p/sfdc-wsc
0 stars 0 forks source link

unable to call custom webservice class from java client #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

The Below Code is Used:

partnerConnection = Connector.newConnection(config);
partnerConnection.login(USERNAME, PASSWORD);
System.out.println("SessionId: " + config.getSessionId());  

MyWebServiceBindingStub Stub = new WyndhamMyWebServiceBindingStub();

MyWebServiceServiceLocator objMyWebServiceLocator=new 
MyWebServiceServiceLocator();
Stub=(MyWebServiceBindingStub)new 
MyWebServiceServiceLocator().getMyWebService();

SessionHeader_element sh = new SessionHeader_element();
sh.setSessionId(config.getSessionId());

Stub.setHeader(objMyWebServiceLocator.getServiceName().getNamespaceURI(),"Sessio
nHeader",  sh);
Stub.callAction();

What is the expected output? What do you see instead?

the code for the my java client looks like this but when I am executing the 
code am always getting No serializer found for class 
com.sforce.soap.partner.SessionHeader_element in registry 
org.apache.axis.encoding.TypeMappingDelegate@96cf11

What version of the product are you using? On what operating system?
Windows 7 and latest version of wsc and partner wsdl

Please provide any additional information below.

Original issue reported on code.google.com by roxcy...@gmail.com on 16 Aug 2011 at 8:08