Farzad Akbarnejad
asked on
WSDL and Java
Hello,
I have a WSDL file for web service. I need a sample java code to call the method in web service.
How can I use it?
Thanks
-FA
I have a WSDL file for web service. I need a sample java code to call the method in web service.
How can I use it?
Thanks
-FA
you can use wsdl2java tool to create needed classes so you can call the webservice
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hello,
I have four class created using wsdl2java tool:
EShopService
EShopServiceLocator
EShopServiceSoap
EShopServiceSoapStub
I don't know how to call my service method from these classes. Would you please get me a sample code using above classes?
Thanks
-FA
I have four class created using wsdl2java tool:
EShopService
EShopServiceLocator
EShopServiceSoap
EShopServiceSoapStub
I don't know how to call my service method from these classes. Would you please get me a sample code using above classes?
Thanks
-FA
if you send your webservice url, i can help you with source code.
it looks like this;
it looks like this;
// Make a service
EShopService service = new EShopServiceLocator();
// Now use the service to get a stub to the service
try {
EShop_PortType call = service.getEShopPort();
XXX result = call.YYY(...);
} catch (Exception e) {
e.printStackTrace();
}
ASKER
Hi,
Here is my wsdl file.
Would you please send me the exact code.
Thanks
-FA
Here is my wsdl file.
Would you please send me the exact code.
Thanks
-FA
<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://tempuri.org/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://tempuri.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
<s:element name="PinPaymentRequest">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="pin" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="amount" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="orderId" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="callbackUrl" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="authority" type="s:long" />
<s:element minOccurs="1" maxOccurs="1" name="status" type="s:unsignedByte" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PinPaymentRequestResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="authority" type="s:long" />
<s:element minOccurs="1" maxOccurs="1" name="status" type="s:unsignedByte" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PinPaymentEnquiry">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="pin" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="authority" type="s:long" />
<s:element minOccurs="1" maxOccurs="1" name="status" type="s:unsignedByte" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PinPaymentEnquiryResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="status" type="s:unsignedByte" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PinVoidPayment">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="pin" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="orderId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="orderToVoid" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="status" type="s:unsignedByte" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PinVoidPaymentResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="status" type="s:unsignedByte" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PinRefundPayment">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="pin" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="orderId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="orderToRefund" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="amount" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="status" type="s:unsignedByte" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PinRefundPaymentResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="status" type="s:unsignedByte" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PinReversal">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="pin" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="orderId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="orderToReversal" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="status" type="s:unsignedByte" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PinReversalResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="status" type="s:unsignedByte" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PinSetDefaultCallbackUrl">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="pin" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="url" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="status" type="s:unsignedByte" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PinSetDefaultCallbackUrlResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="status" type="s:unsignedByte" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</types>
<message name="PinPaymentRequestSoapIn">
<part name="parameters" element="s0:PinPaymentRequest" />
</message>
<message name="PinPaymentRequestSoapOut">
<part name="parameters" element="s0:PinPaymentRequestResponse" />
</message>
<message name="PinPaymentEnquirySoapIn">
<part name="parameters" element="s0:PinPaymentEnquiry" />
</message>
<message name="PinPaymentEnquirySoapOut">
<part name="parameters" element="s0:PinPaymentEnquiryResponse" />
</message>
<message name="PinVoidPaymentSoapIn">
<part name="parameters" element="s0:PinVoidPayment" />
</message>
<message name="PinVoidPaymentSoapOut">
<part name="parameters" element="s0:PinVoidPaymentResponse" />
</message>
<message name="PinRefundPaymentSoapIn">
<part name="parameters" element="s0:PinRefundPayment" />
</message>
<message name="PinRefundPaymentSoapOut">
<part name="parameters" element="s0:PinRefundPaymentResponse" />
</message>
<message name="PinReversalSoapIn">
<part name="parameters" element="s0:PinReversal" />
</message>
<message name="PinReversalSoapOut">
<part name="parameters" element="s0:PinReversalResponse" />
</message>
<message name="PinSetDefaultCallbackUrlSoapIn">
<part name="parameters" element="s0:PinSetDefaultCallbackUrl" />
</message>
<message name="PinSetDefaultCallbackUrlSoapOut">
<part name="parameters" element="s0:PinSetDefaultCallbackUrlResponse" />
</message>
<portType name="EShopServiceSoap">
<operation name="PinPaymentRequest">
<input message="s0:PinPaymentRequestSoapIn" />
<output message="s0:PinPaymentRequestSoapOut" />
</operation>
<operation name="PinPaymentEnquiry">
<input message="s0:PinPaymentEnquirySoapIn" />
<output message="s0:PinPaymentEnquirySoapOut" />
</operation>
<operation name="PinVoidPayment">
<input message="s0:PinVoidPaymentSoapIn" />
<output message="s0:PinVoidPaymentSoapOut" />
</operation>
<operation name="PinRefundPayment">
<input message="s0:PinRefundPaymentSoapIn" />
<output message="s0:PinRefundPaymentSoapOut" />
</operation>
<operation name="PinReversal">
<input message="s0:PinReversalSoapIn" />
<output message="s0:PinReversalSoapOut" />
</operation>
<operation name="PinSetDefaultCallbackUrl">
<input message="s0:PinSetDefaultCallbackUrlSoapIn" />
<output message="s0:PinSetDefaultCallbackUrlSoapOut" />
</operation>
</portType>
<binding name="EShopServiceSoap" type="s0:EShopServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<operation name="PinPaymentRequest">
<soap:operation soapAction="http://tempuri.org/PinPaymentRequest" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="PinPaymentEnquiry">
<soap:operation soapAction="http://tempuri.org/PinPaymentEnquiry" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="PinVoidPayment">
<soap:operation soapAction="http://tempuri.org/PinVoidPayment" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="PinRefundPayment">
<soap:operation soapAction="http://tempuri.org/PinRefundPayment" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="PinReversal">
<soap:operation soapAction="http://tempuri.org/PinReversal" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="PinSetDefaultCallbackUrl">
<soap:operation soapAction="http://tempuri.org/PinSetDefaultCallbackUrl" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<service name="EShopService">
<port name="EShopServiceSoap" binding="s0:EShopServiceSoap">
<soap:address location="https://www.pec24.com/pecpaymentgateway/EShopService.asmx" />
</port>
</service>
</definitions>
there is problem with wsdl with setOmittable method.
code looks like this;
code looks like this;
// Make a service
EShopService service = new EShopServiceLocator();
// Now use the service to get a stub to the service
try {
EShopServiceSoap_PortType call = service.getEShopServiceSoap();
call.pinPaymentEnquiry(null, 0, null); // any method with your params
System.out.println("service called...");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
ASKER
Hello,
Thanks. I generate stub classes and want to invoke PinPaymentRequest function with proper parameters but I got the following exception. Do you have any idea?
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: System.Web.Services.Protoc ols.SoapEx ception: Server was unable to read request. ---> System.InvalidOperationExc eption: There is an error in XML document (9, 28). ---> System.FormatException: Input string was not in a correct format.
at System.Number.ParseInt32(S tring s, NumberStyles style, NumberFormatInfo info)
at System.Byte.Parse(String s, NumberStyles style, IFormatProvider provider)
at System.Xml.XmlConvert.ToBy te(String s)
at Microsoft.Xml.Serializatio n.Generate dAssembly. XmlSeriali zationRead er1.Read2_ PinPayment Request()
at Microsoft.Xml.Serializatio n.Generate dAssembly. PinPayment RequestSer ializer.De serialize( XmlSeriali zationRead er reader)
at System.Xml.Serialization.X mlSerializ er.Deseria lize(XmlRe ader xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.X mlSerializ er.Deseria lize(XmlRe ader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.X mlSerializ er.Deseria lize(XmlRe ader xmlReader, XmlDeserializationEvents events)
at System.Xml.Serialization.X mlSerializ er.Deseria lize(XmlRe ader xmlReader)
at System.Web.Services.Protoc ols.SoapSe rverProtoc ol.ReadPar ameters()
--- End of inner exception stack trace ---
at System.Web.Services.Protoc ols.SoapSe rverProtoc ol.ReadPar ameters()
at System.Web.Services.Protoc ols.WebSer viceHandle r.Invoke()
at System.Web.Services.Protoc ols.WebSer viceHandle r.CoreProc essRequest ()
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:System.Web.Se rvices.Pro tocols.Soa pException : Server was unable to read request. ---> System.InvalidOperationExc eption: There is an error in XML document (9, 28). ---> System.FormatException: Input string was not in a correct format.
at System.Number.ParseInt32(S tring s, NumberStyles style, NumberFormatInfo info)
at System.Byte.Parse(String s, NumberStyles style, IFormatProvider provider)
at System.Xml.XmlConvert.ToBy te(String s)
at Microsoft.Xml.Serializatio n.Generate dAssembly. XmlSeriali zationRead er1.Read2_ PinPayment Request()
at Microsoft.Xml.Serializatio n.Generate dAssembly. PinPayment RequestSer ializer.De serialize( XmlSeriali zationRead er reader)
at System.Xml.Serialization.X mlSerializ er.Deseria lize(XmlRe ader xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.X mlSerializ er.Deseria lize(XmlRe ader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.X mlSerializ er.Deseria lize(XmlRe ader xmlReader, XmlDeserializationEvents events)
at System.Xml.Serialization.X mlSerializ er.Deseria lize(XmlRe ader xmlReader)
at System.Web.Services.Protoc ols.SoapSe rverProtoc ol.ReadPar ameters()
--- End of inner exception stack trace ---
at System.Web.Services.Protoc ols.SoapSe rverProtoc ol.ReadPar ameters()
at System.Web.Services.Protoc ols.WebSer viceHandle r.Invoke()
at System.Web.Services.Protoc ols.WebSer viceHandle r.CoreProc essRequest ()
at org.apache.axis.message.SO APFaultBui lder.creat eFault(SOA PFaultBuil der.java:2 22)
at org.apache.axis.message.SO APFaultBui lder.endEl ement(SOAP FaultBuild er.java:12 9)
at org.apache.axis.encoding.D eserializa tionContex t.endEleme nt(Deseria lizationCo ntext.java :1087)
at org.apache.xerces.parsers. AbstractSA XParser.en dElement(U nknown Source)
at org.apache.xerces.impl.XML NSDocument ScannerImp l.scanEndE lement(Unk nown Source)
at org.apache.xerces.impl.XML DocumentFr agmentScan nerImpl$Fr agmentCont entDispatc her.dispat ch(Unknown Source)
at org.apache.xerces.impl.XML DocumentFr agmentScan nerImpl.sc anDocument (Unknown Source)
at org.apache.xerces.parsers. XML11Confi guration.p arse(Unkno wn Source)
at org.apache.xerces.parsers. XML11Confi guration.p arse(Unkno wn Source)
at org.apache.xerces.parsers. XMLParser. parse(Unkn own Source)
at org.apache.xerces.parsers. AbstractSA XParser.pa rse(Unknow n Source)
at org.apache.xerces.jaxp.SAX ParserImpl $JAXPSAXPa rser.parse (Unknown Source)
at javax.xml.parsers.SAXParse r.parse(Un known Source)
at org.apache.axis.encoding.D eserializa tionContex t.parse(De serializat ionContext .java:227)
at org.apache.axis.SOAPPart.g etAsSOAPEn velope(SOA PPart.java :696)
at org.apache.axis.Message.ge tSOAPEnvel ope(Messag e.java:435 )
at org.apache.axis.handlers.s oap.MustUn derstandCh ecker.invo ke(MustUnd erstandChe cker.java: 62)
at org.apache.axis.client.Axi sClient.in voke(AxisC lient.java :206)
at org.apache.axis.client.Cal l.invokeEn gine(Call. java:2784)
at org.apache.axis.client.Cal l.invoke(C all.java:2 767)
at org.apache.axis.client.Cal l.invoke(C all.java:2 443)
at org.apache.axis.client.Cal l.invoke(C all.java:2 366)
at org.apache.axis.client.Cal l.invoke(C all.java:1 812)
at org.tempuri.EShopServiceSo apStub.pin PaymentReq uest(EShop ServiceSoa pStub.java :195)
at com.liferay.portlet.shoppi ng.util.Sh oppingPars ian.PinPay mentReques t(Shopping Parsian.ja va:28)
at com.liferay.portlet.shoppi ng.action. CheckoutAc tion.forwa rdCheckout (CheckoutA ction.java :208)
at com.liferay.portlet.shoppi ng.action. CheckoutAc tion.proce ssAction(C heckoutAct ion.java:9 9)
at com.liferay.portal.struts. PortletReq uestProces sor.proces s(PortletR equestProc essor.java :172)
at com.liferay.portlet.Struts Portlet.pr ocessActio n(StrutsPo rtlet.java :95)
at com.liferay.portlet.CacheP ortlet._in voke(Cache Portlet.ja va:357)
at com.liferay.portlet.CacheP ortlet.pro cessAction (CachePort let.java:1 57)
at com.liferay.portal.action. LayoutActi on._proces sPortletRe quest(Layo utAction.j ava:269)
at com.liferay.portal.action. LayoutActi on._proces sActionReq uest(Layou tAction.ja va:290)
at com.liferay.portal.action. LayoutActi on.execute (LayoutAct ion.java:1 13)
at org.apache.struts.action.R equestProc essor.proc essActionP erform(Req uestProces sor.java:4 31)
at org.apache.struts.action.R equestProc essor.proc ess(Reques tProcessor .java:236)
at com.liferay.portal.struts. PortalRequ estProcess or.process (PortalReq uestProces sor.java:1 56)
at org.apache.struts.action.A ctionServl et.process (ActionSer vlet.java: 1196)
at org.apache.struts.action.A ctionServl et.doPost( ActionServ let.java:4 32)
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 709)
at com.liferay.portal.servlet .MainServl et.callPar entService (MainServl et.java:47 9)
at com.liferay.portal.servlet .MainServl et.service (MainServl et.java:87 7)
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 802)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:252 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at com.liferay.filters.secure .SecureFil ter.doFilt er(SecureF ilter.java :143)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at com.liferay.portal.servlet .filters.v irtualhost .VirtualHo stFilter.d oFilter(Vi rtualHostF ilter.java :169)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at org.apache.catalina.core.A pplication Dispatcher .invoke(Ap plicationD ispatcher. java:672)
at org.apache.catalina.core.A pplication Dispatcher .processRe quest(Appl icationDis patcher.ja va:463)
at org.apache.catalina.core.A pplication Dispatcher .doForward (Applicati onDispatch er.java:39 8)
at org.apache.catalina.core.A pplication Dispatcher .forward(A pplication Dispatcher .java:301)
at com.liferay.portal.servlet .FriendlyU RLServlet. service(Fr iendlyURLS ervlet.jav a:126)
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 802)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:252 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at com.liferay.filters.strip. StripFilte r.doFilter (StripFilt er.java:94 )
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at com.liferay.filters.secure .SecureFil ter.doFilt er(SecureF ilter.java :143)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at com.liferay.filters.compre ssion.Comp ressionFil ter.doFilt er(Compres sionFilter .java:115)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at com.liferay.portal.servlet .filters.l ayoutcache .LayoutCac heFilter.d oFilter(La youtCacheF ilter.java :197)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at com.liferay.portal.servlet .filters.a utologin.A utoLoginFi lter.doFil ter(AutoLo ginFilter. java:117)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at com.liferay.portal.servlet .filters.v irtualhost .VirtualHo stFilter.d oFilter(Vi rtualHostF ilter.java :169)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at org.apache.catalina.core.S tandardWra pperValve. invoke(Sta ndardWrapp erValve.ja va:213)
at org.apache.catalina.core.S tandardCon textValve. invoke(Sta ndardConte xtValve.ja va:178)
at org.apache.catalina.authen ticator.Au thenticato rBase.invo ke(Authent icatorBase .java:432)
at org.apache.catalina.core.S tandardHos tValve.inv oke(Standa rdHostValv e.java:126 )
at org.apache.catalina.valves .ErrorRepo rtValve.in voke(Error ReportValv e.java:105 )
at org.apache.catalina.core.S tandardEng ineValve.i nvoke(Stan dardEngine Valve.java :107)
at org.apache.catalina.connec tor.Coyote Adapter.se rvice(Coyo teAdapter. java:148)
at org.apache.coyote.http11.H ttp11Proce ssor.proce ss(Http11P rocessor.j ava:869)
at org.apache.coyote.http11.H ttp11BaseP rotocol$Ht tp11Connec tionHandle r.processC onnection( Http11Base Protocol.j ava:664)
at org.apache.tomcat.util.net .PoolTcpEn dpoint.pro cessSocket (PoolTcpEn dpoint.jav a:527)
at org.apache.tomcat.util.net .LeaderFol lowerWorke rThread.ru nIt(Leader FollowerWo rkerThread .java:80)
at org.apache.tomcat.util.thr eads.Threa dPool$Cont rolRunnabl e.run(Thre adPool.jav a:684)
at java.lang.Thread.run(Threa d.java:595 )
Thanks. I generate stub classes and want to invoke PinPaymentRequest function with proper parameters but I got the following exception. Do you have any idea?
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: System.Web.Services.Protoc
at System.Number.ParseInt32(S
at System.Byte.Parse(String s, NumberStyles style, IFormatProvider provider)
at System.Xml.XmlConvert.ToBy
at Microsoft.Xml.Serializatio
at Microsoft.Xml.Serializatio
at System.Xml.Serialization.X
--- End of inner exception stack trace ---
at System.Xml.Serialization.X
at System.Xml.Serialization.X
at System.Xml.Serialization.X
at System.Web.Services.Protoc
--- End of inner exception stack trace ---
at System.Web.Services.Protoc
at System.Web.Services.Protoc
at System.Web.Services.Protoc
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:System.Web.Se
at System.Number.ParseInt32(S
at System.Byte.Parse(String s, NumberStyles style, IFormatProvider provider)
at System.Xml.XmlConvert.ToBy
at Microsoft.Xml.Serializatio
at Microsoft.Xml.Serializatio
at System.Xml.Serialization.X
--- End of inner exception stack trace ---
at System.Xml.Serialization.X
at System.Xml.Serialization.X
at System.Xml.Serialization.X
at System.Web.Services.Protoc
--- End of inner exception stack trace ---
at System.Web.Services.Protoc
at System.Web.Services.Protoc
at System.Web.Services.Protoc
at org.apache.axis.message.SO
at org.apache.axis.message.SO
at org.apache.axis.encoding.D
at org.apache.xerces.parsers.
at org.apache.xerces.impl.XML
at org.apache.xerces.impl.XML
at org.apache.xerces.impl.XML
at org.apache.xerces.parsers.
at org.apache.xerces.parsers.
at org.apache.xerces.parsers.
at org.apache.xerces.parsers.
at org.apache.xerces.jaxp.SAX
at javax.xml.parsers.SAXParse
at org.apache.axis.encoding.D
at org.apache.axis.SOAPPart.g
at org.apache.axis.Message.ge
at org.apache.axis.handlers.s
at org.apache.axis.client.Axi
at org.apache.axis.client.Cal
at org.apache.axis.client.Cal
at org.apache.axis.client.Cal
at org.apache.axis.client.Cal
at org.apache.axis.client.Cal
at org.tempuri.EShopServiceSo
at com.liferay.portlet.shoppi
at com.liferay.portlet.shoppi
at com.liferay.portlet.shoppi
at com.liferay.portal.struts.
at com.liferay.portlet.Struts
at com.liferay.portlet.CacheP
at com.liferay.portlet.CacheP
at com.liferay.portal.action.
at com.liferay.portal.action.
at com.liferay.portal.action.
at org.apache.struts.action.R
at org.apache.struts.action.R
at com.liferay.portal.struts.
at org.apache.struts.action.A
at org.apache.struts.action.A
at javax.servlet.http.HttpSer
at com.liferay.portal.servlet
at com.liferay.portal.servlet
at javax.servlet.http.HttpSer
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at com.liferay.filters.secure
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at com.liferay.portal.servlet
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at com.liferay.portal.servlet
at javax.servlet.http.HttpSer
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at com.liferay.filters.strip.
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at com.liferay.filters.secure
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at com.liferay.filters.compre
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at com.liferay.portal.servlet
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at com.liferay.portal.servlet
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at com.liferay.portal.servlet
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.authen
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.connec
at org.apache.coyote.http11.H
at org.apache.coyote.http11.H
at org.apache.tomcat.util.net
at org.apache.tomcat.util.net
at org.apache.tomcat.util.thr
at java.lang.Thread.run(Threa
ASKER
Hello,
Thanks and sorry for delay in accepting solution.
-FA
Thanks and sorry for delay in accepting solution.
-FA