Reza_Rostami_yas
یک شنبه 16 شهریور 1393, 17:11 عصر
سلام
من یه وب سایت رو به وسیله axis2 فراخوانی یا import کردم.
این وب سایت از متدولوژی rpc encoded استفاده می کنه.
کد برای اجرای وب سرویس :
GetPayIDBillIDStub stub = new GetPayIDBillIDStub("http://80.91.4.113:8088/services/GetPayIDBillID_Proxy"); stub._getServiceClient().getOptions().setProperty( org.apache.axis2.transport.http.HTTPConstants.CHUN KED, Boolean.FALSE);
GetPayIDBillIDStub.PaymentInput input = new GetPayIDBillIDStub.PaymentInput();
input.setPassword("123456");
input.setTelephone(2111111111);
input.setUsername("test");
paymentTelOPR.setPaymentTelOPRRequest(input);
org.apache.axiom.om.OMFactory factory = org.apache.axiom.om.OMAbstractFactory.getOMFactory (); paymentTelOPRResponseE = stub.paymentTelOPR(paymentTelOPRE.setPaymentTelOPR Request(paymentTelOPR.getOMElement(GetPayIDBillIDS tub.PaymentTelOPR.MY_QNAME, factory)));
اطلاعاتی که سمت سرور می فرسته :
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns2:PaymentTelOPR xmlns:ns2="http://www.tct.ir/Services/GetPayIDBillID/"><PaymentTelOPRRequest><ns1:PaymentTelOPR xmlns:ns1="http://www.example.org/GetPayIDBillID/"><PaymentTelOPRRequest><username>USERTRJ</username><password>123456</password><Telephone>2122000015</Telephone></PaymentTelOPRRequest></ns1:PaymentTelOPR></PaymentTelOPRRequest></ns2:PaymentTelOPR></soapenv:Body></soapenv:Envelope>
و اطلاعات رو پس میگیره. ولی چون تگی به نام fault داخل اطلاعات بازگشتی نیست پیغام خطا میگیره.
نمی دونم باید چی کار کنم کمکم کنید
با تشکر.
من یه وب سایت رو به وسیله axis2 فراخوانی یا import کردم.
این وب سایت از متدولوژی rpc encoded استفاده می کنه.
کد برای اجرای وب سرویس :
GetPayIDBillIDStub stub = new GetPayIDBillIDStub("http://80.91.4.113:8088/services/GetPayIDBillID_Proxy"); stub._getServiceClient().getOptions().setProperty( org.apache.axis2.transport.http.HTTPConstants.CHUN KED, Boolean.FALSE);
GetPayIDBillIDStub.PaymentInput input = new GetPayIDBillIDStub.PaymentInput();
input.setPassword("123456");
input.setTelephone(2111111111);
input.setUsername("test");
paymentTelOPR.setPaymentTelOPRRequest(input);
org.apache.axiom.om.OMFactory factory = org.apache.axiom.om.OMAbstractFactory.getOMFactory (); paymentTelOPRResponseE = stub.paymentTelOPR(paymentTelOPRE.setPaymentTelOPR Request(paymentTelOPR.getOMElement(GetPayIDBillIDS tub.PaymentTelOPR.MY_QNAME, factory)));
اطلاعاتی که سمت سرور می فرسته :
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns2:PaymentTelOPR xmlns:ns2="http://www.tct.ir/Services/GetPayIDBillID/"><PaymentTelOPRRequest><ns1:PaymentTelOPR xmlns:ns1="http://www.example.org/GetPayIDBillID/"><PaymentTelOPRRequest><username>USERTRJ</username><password>123456</password><Telephone>2122000015</Telephone></PaymentTelOPRRequest></ns1:PaymentTelOPR></PaymentTelOPRRequest></ns2:PaymentTelOPR></soapenv:Body></soapenv:Envelope>
و اطلاعات رو پس میگیره. ولی چون تگی به نام fault داخل اطلاعات بازگشتی نیست پیغام خطا میگیره.
نمی دونم باید چی کار کنم کمکم کنید
با تشکر.