aspose file tools*
The moose likes Web Services and the fly likes Webservice client  problem  axis2 wsdl1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservice client  problem  axis2 wsdl1.1" Watch "Webservice client  problem  axis2 wsdl1.1" New topic
Author

Webservice client problem axis2 wsdl1.1

Kumar Ala
Ranch Hand

Joined: Apr 30, 2009
Posts: 53
I have created webservice client based on this link http://px.pats.no/px/Eclipse_tutorial.html I do realize that i am using WSDL1.1 specification.

From my WSDL i have the following serivce part

service name="BAPI_CUSTOMER_DISPLAYService" documentation SAP Service BAPI_CUSTOMER_DISPLAY via SOAP documentation port name="BAPI_CUSTOMER_DISPLAYPortType" binding="s0:BAPI_CUSTOMER_DISPLAYBinding" soap:address location="http://**:8000/sap/bc/soap/rfc" port service


Following is my client BAPI_CUSTOMER_DISPLAYService locator = new BAPI_CUSTOMER_DISPLAYServiceLocator(); URL urlLocation; urlLocation = new URL("http://**:8000/sap/bc/soap/rfc");

System.out.println(locator.getBAPI_CUSTOMER_DISPLAYPortTypeAddress());

BAPI_CUSTOMER_DISPLAYBindingStub sapStub = new BAPI_CUSTOMER_DISPLAYBindingStub(urlLocation,locator);

sapStub.setUsername("****");
sapStub.setPassword("*****");

sapStub.BAPI_CUSTOMER_DISPLAY("1");


I am getting the following error AxisFault faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (403)Forbidden faultActor: faultNode: faultDetail: {}:return code: 403 This service requires client certificate for authentication procedure. {http://xml.apache.org/axis/}HttpErrorCode:403

(403)Forbidden at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at functions.rfc.sap.document.sap_com.BAPI_CUSTOMER_DISPLAYBindingStub.BAPI_CUSTOMER_DISPLAY(BAPI_CUSTOMER_DISPLAYBindingStub.java:234) at functions.rfc.sap.document.sap_com.SAPClient.main(SAPClient.java:33)

Any help is appreciated. My intention is to consume services with any java technologies. This is Urgent.


kumar
SCEA5 P1
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Webservice client problem axis2 wsdl1.1