Android 2.1系统和Ksoap2-Android的装配2.4 - 的SOAPFault错误 [英] Android 2.1 and Ksoap2-Android-assembly-2.4 -- SoapFault Error
问题描述
我很新的Android和ksoap2发展。我一直在寻找在论坛上的答案,我的错误,仍然没有找到一个修复。希望有人能够推测如何修复错误。
我打电话,在使用Ksoap2-Android的装配2.4瓶库我的样本Android应用10个参数一个WebService。
从responsedump调用的错误:
<?XML版本=1.0编码=UTF-8&GT?;
<肥皂:信封的xmlns:SOAP =http://schemas.xmlsoap.org/soap/envelope/的xmlns:XSI =http://www.w3.org/2001/XMLSchema-instance的xmlns:XSD = http://www.w3.org/2001/XMLSchema\">
<肥皂:身体与GT;
<肥皂:故障>
<故障code>肥皂:客户< /故障code>
< faultstring>服务器无法读取请求。 ---&放大器; GT;有XML文档(1,435)的一个错误。 ---&放大器; GT;输入字符串的不正确的格式< / faultstring>
<细节/>
< / SOAP:故障>
< / SOAP:身体与GT;
< / SOAP:信封>
从requestdump呼叫请求:
<五:信封的xmlns:I =http://www.w3.org/2001/XMLSchema-instance的xmlns:D =HTTP://www.w3 .ORG / 2001 / XML模式的xmlns:C =http://schemas.xmlsoap.org/soap/encoding/的xmlns:v =http://schemas.xmlsoap.org/soap/envelope/>
<五:页眉/>
<五:身体与GT;
&所述; InsertAnalyzerQueue的xmlns =http://63.237.52.216/service.asmx/ID =O0C:根=1>
< uploadcustomerkey我:TYPE =D:INT> 11111 LT; / uploadcustomerkey>
< uploadcustomertype我:TYPE =D:字符串> C< / uploadcustomertype>
<介绍我:TYPE =D:字符串> ANDROIDTEST< /描述>
< UploadedFile的我:TYPE =D:字符串>&MYFILE LT; / UploadedFile的>
< companionfile我:TYPE =D:字符串> C< / companionfile>
< EMAILADDRESS我:TYPE =D:字符串>汤姆@ transferex preSS< / EMAILADDRESS>
< generatedfilename我:TYPE =D:字符串>&MyFileName的LT; / generatedfilename>
<我公司名称:TYPE =D:字符串>&MyCompany的LT; /公司名称>
< dealerid我:TYPE =D:字符串>测试与LT; / dealerid>
< phonenbr我:TYPE =D:字符串> 4409181900< / phonenbr>
< / InsertAnalyzerQueue>
< / V:车身>< / V:信封>
我的实际code:
包com.example.soapconnect2;进口java.io.IOException异常;
进口org.ksoap2.transport.AndroidHttpTransport;
进口org.ksoap2.SoapEnvelope;
进口org.ksoap2.serialization.PropertyInfo;
进口org.ksoap2.serialization.SoapObject;
进口org.ksoap2.serialization.SoapSerializationEnvelope;
进口org.xmlpull.v1.XmlPullParserException;进口android.app.Activity;
进口android.os.Bundle;
进口android.widget.Toast;公共类SoapConnect2延伸活动{/ **当第一次创建活动调用。 * /
私有静态最后弦乐SOAP_ACTION =http://63.237.52.216/service.asmx/InsertAnalyzerQueue; //需要包含WebService的方法
私有静态最后弦乐METHOD_NAME =InsertAnalyzerQueue; //网络服务
私有静态最后弦乐NAMESPACE =http://63.237.52.216/service.asmx/; //仅使用IP地址加上ASMX文件名
私有静态最终字符串URL =http://63.237.52.216/service.asmx; //仅使用IP地址加上ASMX文件名
// HTTPGET httpPost =新HTTPGET(http://63.237.52.215/serce.asmx/IsValidReferenceID?referenceID='092010-0123A1of1');//私有静态最终字符串URL = \"http://63.237.52.216/service.asmx/InsertAnalyzerQueue?uploadcustomerkey=1111&uploadcustomertype=T&description=TESTTESTTEST&uploadedfile=My_file.jpg&companionfile=&emailaddress=tom@test.com&generatedfilename=MyFileName.jpg&companyname=MyCompany&dealerid=TEST&phonenbr=5555555555\";的String []的结果;
串resultdata;吐司mtoast;
的PropertyInfo mPropertyInfo;字符串mRequestDump = NULL;
字符串mResponseDump = NULL;@覆盖
公共无效的onCreate(捆绑savedInstanceState){
super.onCreate(savedInstanceState);
的setContentView(R.layout.main);
尝试{ SoapObject要求=新SoapObject空间(namespace,METHOD_NAME); mPropertyInfo =新的PropertyInfo(); //mPropertyInfo.elementType.setValue(request.addProperty(\"uploadcustomerkey,11111)); //mPropertyInfo.setElementType(elementType)= PropertyInfo.INTEGER_CLASS; //添加参数<参数名称>,< VALUE>
request.addProperty(uploadcustomerkey,11111);
request.addProperty(uploadcustomertype,C);
request.addProperty(说明,ANDROIDTEST);
request.addProperty(UploadedFile的,MYFILE);
request.addProperty(companionfile,C);
request.addProperty(EMAILADDRESS,汤姆@ transferex preSS);
request.addProperty(generatedfilename,MyFileName的);
request.addProperty(公司名称,MyCompany的);
request.addProperty(dealerid,TEST);
request.addProperty(phonenbr,4409181900); SoapSerializationEnvelope mEnvelope =新SoapSerializationEnvelope(SoapEnvelope.VER11);
mEnvelope.dotNet = TRUE;
mEnvelope.setOutputSoapObject(请求); mEnvelope.encodingStyle = SoapSerializationEnvelope.XSI; AndroidHttpTransport androidHttpTransport =新AndroidHttpTransport(URL); androidHttpTransport.debug = TRUE; 尝试{
androidHttpTransport.call(SOAP_ACTION,mEnvelope); }
赶上(XmlPullParserException E){
// TODO自动生成catch块
e.printStackTrace();
}
赶上(IOException异常五){
// TODO自动生成catch块
e.printStackTrace();
} mRequestDump = androidHttpTransport.requestDump;
mResponseDump = androidHttpTransport.responseDump; // SoapObject结果=(SoapObject)envelope.bodyIn;
// resultdata = result.getProperty(0)的ToString(); }赶上(抛出:IllegalArgumentException五){
// TODO自动生成catch块
e.printStackTrace();
} mtoast = Toast.makeText(getBaseContext(),resultdata,Toast.LENGTH_LONG);
mtoast.show(); }
}
实际Webservice的WSDL: http://63.237.52.216/service.asmx?wsdl
<?XML版本=1.0编码=UTF-8&GT?;
- < WSDL:定义的xmlns:SOAP =http://schemas.xmlsoap.org/wsdl/soap/的xmlns:TM =http://microsoft.com/wsdl/mime/textMatching/的xmlns:SOAPENC = http://schemas.xmlsoap.org/soap/encoding/的xmlns:哑剧=http://schemas.xmlsoap.org/wsdl/mime/的xmlns:TNS =http://63.237.52.216/service的.asmx /的xmlns:S1 =http://microsoft.com/wsdl/types/的xmlns:S =http://www.w3.org/2001/XMLSchema中的xmlns:SOAP12 =HTTP:// schemas.xmlsoap.org/wsdl/soap12/的xmlns:HTTP =http://schemas.xmlsoap.org/wsdl/http/的targetNamespace =http://63.237.52.216/service.asmx/的xmlns:WSDL =http://schemas.xmlsoap.org/wsdl/>
- < WSDL:类型>
- < S:架构将elementFormDefault =合格的targetNamespace =http://63.237.52.216/service.asmx/>
< S:导入命名空间=http://microsoft.com/wsdl/types//>
- < S:元素名称=IsValidReferenceID>
- < S:复杂类型>
+ LT氏:序列GT;
&所述氏:元件的minOccurs =0maxOccurs的=1名称=referenceID类型=S:串/>
&所述; /秒:序列GT;
< / s的:复杂类型>
&所述; /秒:组件>
- < S:元素名称=IsValidReferenceIDResponse>
- < S:复杂类型>
- &所述氏:序列GT;
&所述氏:元件的minOccurs =1maxOccurs的=1名称=IsValidReferenceIDResult类型=S:布尔/>
&所述; /秒:序列GT;
< / s的:复杂类型>
&所述; /秒:组件>
- < S:元素名称=GetDealersUploadedItems>
- < S:复杂类型>
- &所述氏:序列GT;
&所述氏:元件的minOccurs =0maxOccurs的=1名称=dealerID类型=S:串/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=phoneNumber的类型=S:串/>
&所述; /秒:序列GT;
< / s的:复杂类型>
&所述; /秒:组件>
- < S:元素名称=GetDealersUploadedItemsResponse>
- < S:复杂类型>
- &所述氏:序列GT;
< S:元素的minOccurs =0的maxOccurs =1NAME =GetDealersUploadedItemsResultTYPE =TNS:ArrayOfUploadItem/>
&所述; /秒:序列GT;
< / s的:复杂类型>
&所述; /秒:组件>
- < S:复杂类型名称=ArrayOfUploadItem>
- &所述氏:序列GT;
< S:元素的minOccurs =0的maxOccurs =无界NAME =UploadItem的nillable =真TYPE =TNS:UploadItem/>
&所述; /秒:序列GT;
< / s的:复杂类型>
- < S:复杂类型名称=UploadItem>
- &所述氏:序列GT;
&所述氏:元件的minOccurs =0maxOccurs的=1名称=UploadRefID类型=S:串/>
< S:元素的minOccurs =1的maxOccurs =1NAME =UploadedDate类型=S:日期时间/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=UploadedFileName类型=S:串/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=UpdatedFlag类型=S:串/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=描述类型=S:串/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=StatusName类型=S:串/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=EmailAddress的类型=S:串/>
&所述; /秒:序列GT;
< / s的:复杂类型>
- < S:元素名称=UpdateOrderStatus>
- < S:复杂类型>
- &所述氏:序列GT;
&所述氏:元件的minOccurs =0maxOccurs的=1名称=referenceIDs类型=S:串/>
< S:元素的minOccurs =1的maxOccurs =1NAME =orderStatus类型=S:INT/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=newCustomerID类型=S:串/>
&所述; /秒:序列GT;
< / s的:复杂类型>
&所述; /秒:组件>
- < S:元素名称=UpdateOrderStatusResponse>
- < S:复杂类型>
- &所述氏:序列GT;
< S:元素的minOccurs =1的maxOccurs =1NAME =UpdateOrderStatusResult类型=S:INT/>
&所述; /秒:序列GT;
< / s的:复杂类型>
&所述; /秒:组件>
- < S:元素名称=InsertAnalyzerQueue>
- < S:复杂类型>
- &所述氏:序列GT;
< S:元素的minOccurs =1的maxOccurs =1NAME =uploadcustomerkey类型=S:INT/>
< S:元素的minOccurs =1的maxOccurs =1NAME =uploadcustomertypeTYPE =S1:字符/>
< S:元素的minOccurs =0的maxOccurs =1NAME =说明类型=S:字符串/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=UploadedFile的类型=S:串/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=companionfile类型=S:串/>
< S:元素的minOccurs =0的maxOccurs =1NAME =EMAILADDRESS类型=S:字符串/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=generatedfilename类型=S:串/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=公司名称类型=S:串/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=dealerid类型=S:串/>
&所述氏:元件的minOccurs =0maxOccurs的=1名称=phonenbr类型=S:串/>
&所述; /秒:序列GT;
< / s的:复杂类型>
&所述; /秒:组件>
- < S:元素名称=InsertAnalyzerQueueResponse>
- < S:复杂类型>
- &所述氏:序列GT;
< S:元素的minOccurs =1的maxOccurs =1NAME =InsertAnalyzerQueueResult类型=S:INT/>
&所述; /秒:序列GT;
< / s的:复杂类型>
&所述; /秒:组件>
- < S:元素名称=MyTestService>
< S:复杂类型/>
&所述; /秒:组件>
- < S:元素名称=MyTestServiceResponse>
- < S:复杂类型>
- &所述氏:序列GT;
&所述氏:元件的minOccurs =0maxOccurs的=1名称=MyTestServiceResult类型=S:串/>
&所述; /秒:序列GT;
< / s的:复杂类型>
&所述; /秒:组件>
< S:元素名称=布尔类型=S:布尔/>
< S:元素名称=ArrayOfUploadItem的nillable =真TYPE =TNS:ArrayOfUploadItem/>
< S:元素名称=INT类型=S:INT/>
< S:元素名称=字符串的nillable =真类型=S:字符串/>
< / S架构>
- < S:架构将elementFormDefault =合格的targetNamespace =http://microsoft.com/wsdl/types/>
- < S:简单类型名称=字符>
< S:限制基地=S:unsignedShort的/>
< / S:简单类型>
< / S架构>
< / WSDL:类型>
- < WSDL:消息名称=IsValidReferenceIDSoapIn>
< WSDL:部分名称=参数元素=TNS:IsValidReferenceID/>
< / WSDL:消息>
- < WSDL:消息名称=IsValidReferenceIDSoapOut>
< WSDL:部分名称=参数元素=TNS:IsValidReferenceIDResponse/>
< / WSDL:消息>
- < WSDL:消息名称=GetDealersUploadedItemsSoapIn>
< WSDL:部分名称=参数元素=TNS:GetDealersUploadedItems/>
< / WSDL:消息>
- < WSDL:消息名称=GetDealersUploadedItemsSoapOut>
< WSDL:部分名称=参数元素=TNS:GetDealersUploadedItemsResponse/>
< / WSDL:消息>
- < WSDL:消息名称=UpdateOrderStatusSoapIn>
< WSDL:部分名称=参数元素=TNS:UpdateOrderStatus/>
< / WSDL:消息>
- < WSDL:消息名称=UpdateOrderStatusSoapOut>
< WSDL:部分名称=参数元素=TNS:UpdateOrderStatusResponse/>
< / WSDL:消息>
- < WSDL:消息名称=InsertAnalyzerQueueSoapIn>
< WSDL:部分名称=参数元素=TNS:InsertAnalyzerQueue/>
< / WSDL:消息>
- < WSDL:消息名称=InsertAnalyzerQueueSoapOut>
< WSDL:部分名称=参数元素=TNS:InsertAnalyzerQueueResponse/>
< / WSDL:消息>
- < WSDL:消息名称=MyTestServiceSoapIn>
< WSDL:部分名称=参数元素=TNS:MyTestService/>
< / WSDL:消息>
- < WSDL:消息名称=MyTestServiceSoapOut>
< WSDL:部分名称=参数元素=TNS:MyTestServiceResponse/>
< / WSDL:消息>
- < WSDL:消息名称=IsValidReferenceIDHttpGetIn>
< WSDL:部分名称=referenceID类型=S:字符串/>
< / WSDL:消息>
- < WSDL:消息名称=IsValidReferenceIDHttpGetOut>
< WSDL:部分名称=body元素=TNS:布尔/>
< / WSDL:消息>
- < WSDL:消息名称=GetDealersUploadedItemsHttpGetIn>
< WSDL:部分名称=dealerID类型=S:字符串/>
< WSDL:部分名=phoneNumber的类型=S:字符串/>
< / WSDL:消息>
- < WSDL:消息名称=GetDealersUploadedItemsHttpGetOut>
< WSDL:部分名称=body元素=TNS:ArrayOfUploadItem/>
< / WSDL:消息>
- < WSDL:消息名称=UpdateOrderStatusHttpGetIn>
< WSDL:部分名称=referenceIDs类型=S:字符串/>
< WSDL:部分名称=orderStatus类型=S:字符串/>
< WSDL:部分名称=newCustomerID类型=S:字符串/>
< / WSDL:消息>
- < WSDL:消息名称=UpdateOrderStatusHttpGetOut>
< WSDL:部分名称=body元素=TNS:INT/>
< / WSDL:消息>
- < WSDL:消息名称=InsertAnalyzerQueueHttpGetIn>
< WSDL:部分名称=uploadcustomerkey类型=S:字符串/>
< WSDL:部分名称=uploadcustomertype类型=S:字符串/>
< WSDL:部分名称=说明类型=S:字符串/>
< WSDL:部分名称=UploadedFile的类型=S:字符串/>
< WSDL:部分名称=companionfile类型=S:字符串/>
< WSDL:部分名称=EMAILADDRESS类型=S:字符串/>
< WSDL:部分名称=generatedfilename类型=S:字符串/>
< WSDL:部分名称=公司名称类型=S:字符串/>
< WSDL:部分名称=dealerid类型=S:字符串/>
< WSDL:部分名称=phonenbr类型=S:字符串/>
< / WSDL:消息>
- < WSDL:消息名称=InsertAnalyzerQueueHttpGetOut>
< WSDL:部分名称=body元素=TNS:INT/>
< / WSDL:消息>
< WSDL:消息名称=MyTestServiceHttpGetIn/>
- < WSDL:消息名称=MyTestServiceHttpGetOut>
< WSDL:部分名称=body元素=TNS:字符串/>
< / WSDL:消息>
- < WSDL:消息名称=IsValidReferenceIDHttpPostIn>
< WSDL:部分名称=referenceID类型=S:字符串/>
< / WSDL:消息>
- < WSDL:消息名称=IsValidReferenceIDHttpPostOut>
< WSDL:部分名称=body元素=TNS:布尔/>
< / WSDL:消息>
- < WSDL:消息名称=GetDealersUploadedItemsHttpPostIn>
< WSDL:部分名称=dealerID类型=S:字符串/>
< WSDL:部分名=phoneNumber的类型=S:字符串/>
< / WSDL:消息>
- < WSDL:消息名称=GetDealersUploadedItemsHttpPostOut>
< WSDL:部分名称=body元素=TNS:ArrayOfUploadItem/>
< / WSDL:消息>
- < WSDL:消息名称=UpdateOrderStatusHttpPostIn>
< WSDL:部分名称=referenceIDs类型=S:字符串/>
< WSDL:部分名称=orderStatus类型=S:字符串/>
< WSDL:部分名称=newCustomerID类型=S:字符串/>
< / WSDL:消息>
- < WSDL:消息名称=UpdateOrderStatusHttpPostOut>
< WSDL:部分名称=body元素=TNS:INT/>
< / WSDL:消息>
- < WSDL:消息名称=InsertAnalyzerQueueHttpPostIn>
< WSDL:部分名称=uploadcustomerkey类型=S:字符串/>
< WSDL:部分名称=uploadcustomertype类型=S:字符串/>
< WSDL:部分名称=说明类型=S:字符串/>
< WSDL:部分名称=UploadedFile的类型=S:字符串/>
< WSDL:部分名称=companionfile类型=S:字符串/>
< WSDL:部分名称=EMAILADDRESS类型=S:字符串/>
< WSDL:部分名称=generatedfilename类型=S:字符串/>
< WSDL:部分名称=公司名称类型=S:字符串/>
< WSDL:部分名称=dealerid类型=S:字符串/>
< WSDL:部分名称=phonenbr类型=S:字符串/>
< / WSDL:消息>
- < WSDL:消息名称=InsertAnalyzerQueueHttpPostOut>
< WSDL:部分名称=body元素=TNS:INT/>
< / WSDL:消息>
< WSDL:消息名称=MyTestServiceHttpPostIn/>
- < WSDL:消息名称=MyTestServiceHttpPostOut>
< WSDL:部分名称=body元素=TNS:字符串/>
< / WSDL:消息>
- < WSDL:portType的名称=ServiceSoap>
- < WSDL:操作名称=IsValidReferenceID>
< WSDL:输入消息=TNS:IsValidReferenceIDSoapIn/>
< WSDL:输出消息=TNS:IsValidReferenceIDSoapOut/>
< / WSDL:运转>
- < WSDL:操作名称=GetDealersUploadedItems>
< WSDL:输入消息=TNS:GetDealersUploadedItemsSoapIn/>
< WSDL:输出消息=TNS:GetDealersUploadedItemsSoapOut/>
< / WSDL:运转>
- < WSDL:操作名称=UpdateOrderStatus>
< WSDL:输入消息=TNS:UpdateOrderStatusSoapIn/>
< WSDL:输出消息=TNS:UpdateOrderStatusSoapOut/>
< / WSDL:运转>
- < WSDL:操作名称=InsertAnalyzerQueue>
< WSDL:输入消息=TNS:InsertAnalyzerQueueSoapIn/>
< WSDL:输出消息=TNS:InsertAnalyzerQueueSoapOut/>
< / WSDL:运转>
- < WSDL:操作名称=MyTestService>
< WSDL:输入消息=TNS:MyTestServiceSoapIn/>
< WSDL:输出消息=TNS:MyTestServiceSoapOut/>
< / WSDL:运转>
< / WSDL:portType的>
- < WSDL:portType的名称=ServiceHttpGet>
- < WSDL:操作名称=IsValidReferenceID>
< WSDL:输入消息=TNS:IsValidReferenceIDHttpGetIn/>
< WSDL:输出消息=TNS:IsValidReferenceIDHttpGetOut/>
< / WSDL:运转>
- < WSDL:操作名称=GetDealersUploadedItems>
< WSDL:输入消息=TNS:GetDealersUploadedItemsHttpGetIn/>
< WSDL:输出消息=TNS:GetDealersUploadedItemsHttpGetOut/>
< / WSDL:运转>
- < WSDL:操作名称=UpdateOrderStatus>
< WSDL:输入消息=TNS:UpdateOrderStatusHttpGetIn/>
< WSDL:输出消息=TNS:UpdateOrderStatusHttpGetOut/>
< / WSDL:运转>
- < WSDL:操作名称=InsertAnalyzerQueue>
< WSDL:输入消息=TNS:InsertAnalyzerQueueHttpGetIn/>
< WSDL:输出消息=TNS:InsertAnalyzerQueueHttpGetOut/>
< / WSDL:运转>
- < WSDL:操作名称=MyTestService>
< WSDL:输入消息=TNS:MyTestServiceHttpGetIn/>
< WSDL:输出消息=TNS:MyTestServiceHttpGetOut/>
< / WSDL:运转>
< / WSDL:portType的>
- < WSDL:portType的名称=ServiceHttpPost>
- < WSDL:操作名称=IsValidReferenceID>
< WSDL:输入消息=TNS:IsValidReferenceIDHttpPostIn/>
< WSDL:输出消息=TNS:IsValidReferenceIDHttpPostOut/>
< / WSDL:运转>
- < WSDL:操作名称=GetDealersUploadedItems>
< WSDL:输入消息=TNS:GetDealersUploadedItemsHttpPostIn/>
< WSDL:输出消息=TNS:GetDealersUploadedItemsHttpPostOut/>
< / WSDL:运转>
- < WSDL:操作名称=UpdateOrderStatus>
< WSDL:输入消息=TNS:UpdateOrderStatusHttpPostIn/>
< WSDL:输出消息=TNS:UpdateOrderStatusHttpPostOut/>
< / WSDL:运转>
- < WSDL:操作名称=InsertAnalyzerQueue>
< WSDL:输入消息=TNS:InsertAnalyzerQueueHttpPostIn/>
< WSDL:输出消息=TNS:InsertAnalyzerQueueHttpPostOut/>
< / WSDL:运转>
- < WSDL:操作名称=MyTestService>
< WSDL:输入消息=TNS:MyTestServiceHttpPostIn/>
< WSDL:输出消息=TNS:MyTestServiceHttpPostOut/>
< / WSDL:运转>
< / WSDL:portType的>
- < WSDL:绑定名称=ServiceSoapTYPE =TNS:ServiceSoap>
<肥皂:绑定传输=http://schemas.xmlsoap.org/soap/http/>
- < WSDL:操作名称=IsValidReferenceID>
<肥皂:操作的soapAction =http://63.237.52.216/service.asmx/IsValidReferenceID的风格=文件/>
- < WSDL:输入>
<肥皂:身体使用=文字/>
< / WSDL:输入>
- < WSDL:输出>
<肥皂:身体使用=文字/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=GetDealersUploadedItems>
<肥皂:操作的soapAction =http://63.237.52.216/service.asmx/GetDealersUploadedItems的风格=文件/>
- < WSDL:输入>
<肥皂:身体使用=文字/>
< / WSDL:输入>
- < WSDL:输出>
<肥皂:身体使用=文字/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=UpdateOrderStatus>
<肥皂:操作的soapAction =http://63.237.52.216/service.asmx/UpdateOrderStatus的风格=文件/>
- < WSDL:输入>
<肥皂:身体使用=文字/>
< / WSDL:输入>
- < WSDL:输出>
<肥皂:身体使用=文字/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=InsertAnalyzerQueue>
<肥皂:操作的soapAction =http://63.237.52.216/service.asmx/InsertAnalyzerQueue的风格=文件/>
- < WSDL:输入>
<肥皂:身体使用=文字/>
< / WSDL:输入>
- < WSDL:输出>
<肥皂:身体使用=文字/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=MyTestService>
<肥皂:操作的soapAction =http://63.237.52.216/service.asmx/MyTestService的风格=文件/>
- < WSDL:输入>
<肥皂:身体使用=文字/>
< / WSDL:输入>
- < WSDL:输出>
<肥皂:身体使用=文字/>
< / WSDL:输出>
< / WSDL:运转>
< / WSDL:结合>
- < WSDL:绑定名称=ServiceSoap12TYPE =TNS:ServiceSoap>
< SOAP12:绑定传输=http://schemas.xmlsoap.org/soap/http/>
- < WSDL:操作名称=IsValidReferenceID>
< SOAP12:操作的soapAction =http://63.237.52.216/service.asmx/IsValidReferenceID的风格=文件/>
- < WSDL:输入>
< SOAP12:身体使用=文字/>
< / WSDL:输入>
- < WSDL:输出>
< SOAP12:身体使用=文字/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=GetDealersUploadedItems>
< SOAP12:操作的soapAction =http://63.237.52.216/service.asmx/GetDealersUploadedItems的风格=文件/>
- < WSDL:输入>
< SOAP12:身体使用=文字/>
< / WSDL:输入>
- < WSDL:输出>
< SOAP12:身体使用=文字/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=UpdateOrderStatus>
< SOAP12:操作的soapAction =http://63.237.52.216/service.asmx/UpdateOrderStatus的风格=文件/>
- < WSDL:输入>
< SOAP12:身体使用=文字/>
< / WSDL:输入>
- < WSDL:输出>
< SOAP12:身体使用=文字/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=InsertAnalyzerQueue>
< SOAP12:操作的soapAction =http://63.237.52.216/service.asmx/InsertAnalyzerQueue的风格=文件/>
- < WSDL:输入>
< SOAP12:身体使用=文字/>
< / WSDL:输入>
- < WSDL:输出>
< SOAP12:身体使用=文字/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=MyTestService>
< SOAP12:操作的soapAction =http://63.237.52.216/service.asmx/MyTestService的风格=文件/>
- < WSDL:输入>
< SOAP12:身体使用=文字/>
< / WSDL:输入>
- < WSDL:输出>
< SOAP12:身体使用=文字/>
< / WSDL:输出>
< / WSDL:运转>
< / WSDL:结合>
- < WSDL:绑定名称=ServiceHttpGetTYPE =TNS:ServiceHttpGet>
< HTTP:结合动词=GET/>
- < WSDL:操作名称=IsValidReferenceID>
< HTTP:操作位置=/ IsValidReferenceID/>
- < WSDL:输入>
< HTTP:urlEn codeD />
< / WSDL:输入>
- < WSDL:输出>
<默:mimeXml部分=体/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=GetDealersUploadedItems>
< HTTP:操作位置=/ GetDealersUploadedItems/>
- < WSDL:输入>
< HTTP:urlEn codeD />
< / WSDL:输入>
- < WSDL:输出>
<默:mimeXml部分=体/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=UpdateOrderStatus>
< HTTP:操作位置=/ UpdateOrderStatus/>
- < WSDL:输入>
< HTTP:urlEn codeD />
< / WSDL:输入>
- < WSDL:输出>
<默:mimeXml部分=体/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=InsertAnalyzerQueue>
< HTTP:操作位置=/ InsertAnalyzerQueue/>
- < WSDL:输入>
< HTTP:urlEn codeD />
< / WSDL:输入>
- < WSDL:输出>
<默:mimeXml部分=体/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=MyTestService>
< HTTP:操作位置=/ MyTestService/>
- < WSDL:输入>
< HTTP:urlEn codeD />
< / WSDL:输入>
- < WSDL:输出>
<默:mimeXml部分=体/>
< / WSDL:输出>
< / WSDL:运转>
< / WSDL:结合>
- < WSDL:绑定名称=ServiceHttpPostTYPE =TNS:ServiceHttpPost>
< HTTP:结合动词=POST/>
- < WSDL:操作名称=IsValidReferenceID>
< HTTP:操作位置=/ IsValidReferenceID/>
- < WSDL:输入>
< MIME类型:内容类型=应用/的X WWW的形式urlen codeD/>
< / WSDL:输入>
- < WSDL:输出>
<默:mimeXml部分=体/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=GetDealersUploadedItems>
< HTTP:操作位置=/ GetDealersUploadedItems/>
- < WSDL:输入>
< MIME类型:内容类型=应用/的X WWW的形式urlen codeD/>
< / WSDL:输入>
- < WSDL:输出>
<默:mimeXml部分=体/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=UpdateOrderStatus>
< HTTP:操作位置=/ UpdateOrderStatus/>
- < WSDL:输入>
< MIME类型:内容类型=应用/的X WWW的形式urlen codeD/>
< / WSDL:输入>
- < WSDL:输出>
<默:mimeXml部分=体/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=InsertAnalyzerQueue>
< HTTP:操作位置=/ InsertAnalyzerQueue/>
- < WSDL:输入>
< MIME类型:内容类型=应用/的X WWW的形式urlen codeD/>
< / WSDL:输入>
- < WSDL:输出>
<默:mimeXml部分=体/>
< / WSDL:输出>
< / WSDL:运转>
- < WSDL:操作名称=MyTestService>
< HTTP:操作位置=/ MyTestService/>
- < WSDL:输入>
< MIME类型:内容类型=应用/的X WWW的形式urlen codeD/>
< / WSDL:输入>
- < WSDL:输出>
<默:mimeXml部分=体/>
< / WSDL:输出>
< / WSDL:运转>
< / WSDL:结合>
- < WSDL:服务名称=服务>
- < WSDL:端口名称=ServiceSoap绑定=TNS:ServiceSoap>
<肥皂:地址位置=http://63.237.52.216/service.asmx/>
< / WSDL:端口>
- < WSDL:端口名称=ServiceSoap12绑定=TNS:ServiceSoap12>
< SOAP12:地址位置=http://63.237.52.216/service.asmx/>
< / WSDL:端口>
- < WSDL:端口名称=ServiceHttpGet绑定=TNS:ServiceHttpGet>
< HTTP:地址位置=http://63.237.52.216/service.asmx/>
< / WSDL:端口>
- < WSDL:端口名称=ServiceHttpPost绑定=TNS:ServiceHttpPost>
< HTTP:地址位置=http://63.237.52.216/service.asmx/>
< / WSDL:端口>
< / WSDL:服务>
< / WSDL:定义>
的SOAPFault解析在2.4的一个问题。查看最新的2.5.1版本ksoap2对,我刚刚发布的Android。
I am very new to Android and ksoap2 development. I have been searching on the forums for an answer to my error and still have not found a fix. Hopefully someone will be able to figure how to fix the error.
I am calling a Webservice with 10 parameters in my sample android app using the Ksoap2-Android-assembly-2.4 jar library.
The error from the responsedump call:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Server was unable to read request. ---> There is an error in XML document (1, 435). ---> Input string was not in a correct format.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
The request from the requestdump call:
<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/">
<v:Header />
<v:Body>
<InsertAnalyzerQueue xmlns="http://63.237.52.216/service.asmx/" id="o0" c:root="1">
<uploadcustomerkey i:type="d:int">11111</uploadcustomerkey>
<uploadcustomertype i:type="d:string">C</uploadcustomertype>
<description i:type="d:string">ANDROIDTEST</description>
<uploadedfile i:type="d:string">Myfile</uploadedfile>
<companionfile i:type="d:string">C</companionfile>
<emailaddress i:type="d:string">tom@transferexpress</emailaddress>
<generatedfilename i:type="d:string">MyFileName</generatedfilename>
<companyname i:type="d:string">MyCompany</companyname>
<dealerid i:type="d:string">TEST</dealerid>
<phonenbr i:type="d:string">4409181900</phonenbr>
</InsertAnalyzerQueue>
</v:Body></v:Envelope>
My actual code:
package com.example.soapconnect2;
import java.io.IOException;
import org.ksoap2.transport.AndroidHttpTransport;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.PropertyInfo;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.xmlpull.v1.XmlPullParserException;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;
public class SoapConnect2 extends Activity {
/** Called when the activity is first created. */
private static final String SOAP_ACTION = "http://63.237.52.216/service.asmx/InsertAnalyzerQueue"; //Need to include WebService method
private static final String METHOD_NAME = "InsertAnalyzerQueue"; //WebService
private static final String NAMESPACE = "http://63.237.52.216/service.asmx/"; //Only use IP address plus the asmx file name
private static final String URL = "http://63.237.52.216/service.asmx"; //Only use IP address plus the asmx file name
//HttpGet httpPost = new HttpGet("http://63.237.52.215/serce.asmx/IsValidReferenceID?referenceID='092010-0123A1of1'");
//private static final String URL = "http://63.237.52.216/service.asmx/InsertAnalyzerQueue?uploadcustomerkey=1111&uploadcustomertype=T&description=TESTTESTTEST&uploadedfile=My_file.jpg&companionfile=&emailaddress=tom@test.com&generatedfilename=MyFileName.jpg&companyname=MyCompany&dealerid=TEST&phonenbr=5555555555";
String[] results;
String resultdata;
Toast mtoast;
PropertyInfo mPropertyInfo;
String mRequestDump = null;
String mResponseDump = null;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try {
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
mPropertyInfo = new PropertyInfo();
//mPropertyInfo.elementType.setValue(request.addProperty("uploadcustomerkey", "11111"));
//mPropertyInfo.setElementType(elementType)= PropertyInfo.INTEGER_CLASS;
//Adds parameters <parameter name>, <value>
request.addProperty("uploadcustomerkey", 11111);
request.addProperty("uploadcustomertype", "C");
request.addProperty("description", "ANDROIDTEST");
request.addProperty("uploadedfile", "Myfile");
request.addProperty("companionfile", "C");
request.addProperty("emailaddress", "tom@transferexpress");
request.addProperty("generatedfilename", "MyFileName");
request.addProperty("companyname", "MyCompany");
request.addProperty("dealerid", "TEST");
request.addProperty("phonenbr", "4409181900");
SoapSerializationEnvelope mEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
mEnvelope.dotNet=true;
mEnvelope.setOutputSoapObject(request);
mEnvelope.encodingStyle = SoapSerializationEnvelope.XSI;
AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(URL);
androidHttpTransport.debug = true;
try {
androidHttpTransport.call(SOAP_ACTION, mEnvelope);
}
catch (XmlPullParserException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
mRequestDump = androidHttpTransport.requestDump;
mResponseDump = androidHttpTransport.responseDump;
//SoapObject result = (SoapObject)envelope.bodyIn;
//resultdata = result.getProperty(0).toString();
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
mtoast = Toast.makeText(getBaseContext(), resultdata, Toast.LENGTH_LONG);
mtoast.show();
}
}
The actual Webservice WSDL:
http://63.237.52.216/service.asmx?wsdl
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://63.237.52.216/service.asmx/" xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://63.237.52.216/service.asmx/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://63.237.52.216/service.asmx/">
<s:import namespace="http://microsoft.com/wsdl/types/" />
- <s:element name="IsValidReferenceID">
- <s:complexType>
+ <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="referenceID" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="IsValidReferenceIDResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="IsValidReferenceIDResult" type="s:boolean" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="GetDealersUploadedItems">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="dealerID" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="phoneNumber" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="GetDealersUploadedItemsResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetDealersUploadedItemsResult" type="tns:ArrayOfUploadItem" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="ArrayOfUploadItem">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="UploadItem" nillable="true" type="tns:UploadItem" />
</s:sequence>
</s:complexType>
- <s:complexType name="UploadItem">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="UploadRefID" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="UploadedDate" type="s:dateTime" />
<s:element minOccurs="0" maxOccurs="1" name="UploadedFileName" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="UpdatedFlag" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="StatusName" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="EmailAddress" type="s:string" />
</s:sequence>
</s:complexType>
- <s:element name="UpdateOrderStatus">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="referenceIDs" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="orderStatus" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="newCustomerID" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="UpdateOrderStatusResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="UpdateOrderStatusResult" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="InsertAnalyzerQueue">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="uploadcustomerkey" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="uploadcustomertype" type="s1:char" />
<s:element minOccurs="0" maxOccurs="1" name="description" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="uploadedfile" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="companionfile" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="emailaddress" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="generatedfilename" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="companyname" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="dealerid" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="phonenbr" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="InsertAnalyzerQueueResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="InsertAnalyzerQueueResult" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="MyTestService">
<s:complexType />
</s:element>
- <s:element name="MyTestServiceResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="MyTestServiceResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="boolean" type="s:boolean" />
<s:element name="ArrayOfUploadItem" nillable="true" type="tns:ArrayOfUploadItem" />
<s:element name="int" type="s:int" />
<s:element name="string" nillable="true" type="s:string" />
</s:schema>
- <s:schema elementFormDefault="qualified" targetNamespace="http://microsoft.com/wsdl/types/">
- <s:simpleType name="char">
<s:restriction base="s:unsignedShort" />
</s:simpleType>
</s:schema>
</wsdl:types>
- <wsdl:message name="IsValidReferenceIDSoapIn">
<wsdl:part name="parameters" element="tns:IsValidReferenceID" />
</wsdl:message>
- <wsdl:message name="IsValidReferenceIDSoapOut">
<wsdl:part name="parameters" element="tns:IsValidReferenceIDResponse" />
</wsdl:message>
- <wsdl:message name="GetDealersUploadedItemsSoapIn">
<wsdl:part name="parameters" element="tns:GetDealersUploadedItems" />
</wsdl:message>
- <wsdl:message name="GetDealersUploadedItemsSoapOut">
<wsdl:part name="parameters" element="tns:GetDealersUploadedItemsResponse" />
</wsdl:message>
- <wsdl:message name="UpdateOrderStatusSoapIn">
<wsdl:part name="parameters" element="tns:UpdateOrderStatus" />
</wsdl:message>
- <wsdl:message name="UpdateOrderStatusSoapOut">
<wsdl:part name="parameters" element="tns:UpdateOrderStatusResponse" />
</wsdl:message>
- <wsdl:message name="InsertAnalyzerQueueSoapIn">
<wsdl:part name="parameters" element="tns:InsertAnalyzerQueue" />
</wsdl:message>
- <wsdl:message name="InsertAnalyzerQueueSoapOut">
<wsdl:part name="parameters" element="tns:InsertAnalyzerQueueResponse" />
</wsdl:message>
- <wsdl:message name="MyTestServiceSoapIn">
<wsdl:part name="parameters" element="tns:MyTestService" />
</wsdl:message>
- <wsdl:message name="MyTestServiceSoapOut">
<wsdl:part name="parameters" element="tns:MyTestServiceResponse" />
</wsdl:message>
- <wsdl:message name="IsValidReferenceIDHttpGetIn">
<wsdl:part name="referenceID" type="s:string" />
</wsdl:message>
- <wsdl:message name="IsValidReferenceIDHttpGetOut">
<wsdl:part name="Body" element="tns:boolean" />
</wsdl:message>
- <wsdl:message name="GetDealersUploadedItemsHttpGetIn">
<wsdl:part name="dealerID" type="s:string" />
<wsdl:part name="phoneNumber" type="s:string" />
</wsdl:message>
- <wsdl:message name="GetDealersUploadedItemsHttpGetOut">
<wsdl:part name="Body" element="tns:ArrayOfUploadItem" />
</wsdl:message>
- <wsdl:message name="UpdateOrderStatusHttpGetIn">
<wsdl:part name="referenceIDs" type="s:string" />
<wsdl:part name="orderStatus" type="s:string" />
<wsdl:part name="newCustomerID" type="s:string" />
</wsdl:message>
- <wsdl:message name="UpdateOrderStatusHttpGetOut">
<wsdl:part name="Body" element="tns:int" />
</wsdl:message>
- <wsdl:message name="InsertAnalyzerQueueHttpGetIn">
<wsdl:part name="uploadcustomerkey" type="s:string" />
<wsdl:part name="uploadcustomertype" type="s:string" />
<wsdl:part name="description" type="s:string" />
<wsdl:part name="uploadedfile" type="s:string" />
<wsdl:part name="companionfile" type="s:string" />
<wsdl:part name="emailaddress" type="s:string" />
<wsdl:part name="generatedfilename" type="s:string" />
<wsdl:part name="companyname" type="s:string" />
<wsdl:part name="dealerid" type="s:string" />
<wsdl:part name="phonenbr" type="s:string" />
</wsdl:message>
- <wsdl:message name="InsertAnalyzerQueueHttpGetOut">
<wsdl:part name="Body" element="tns:int" />
</wsdl:message>
<wsdl:message name="MyTestServiceHttpGetIn" />
- <wsdl:message name="MyTestServiceHttpGetOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
- <wsdl:message name="IsValidReferenceIDHttpPostIn">
<wsdl:part name="referenceID" type="s:string" />
</wsdl:message>
- <wsdl:message name="IsValidReferenceIDHttpPostOut">
<wsdl:part name="Body" element="tns:boolean" />
</wsdl:message>
- <wsdl:message name="GetDealersUploadedItemsHttpPostIn">
<wsdl:part name="dealerID" type="s:string" />
<wsdl:part name="phoneNumber" type="s:string" />
</wsdl:message>
- <wsdl:message name="GetDealersUploadedItemsHttpPostOut">
<wsdl:part name="Body" element="tns:ArrayOfUploadItem" />
</wsdl:message>
- <wsdl:message name="UpdateOrderStatusHttpPostIn">
<wsdl:part name="referenceIDs" type="s:string" />
<wsdl:part name="orderStatus" type="s:string" />
<wsdl:part name="newCustomerID" type="s:string" />
</wsdl:message>
- <wsdl:message name="UpdateOrderStatusHttpPostOut">
<wsdl:part name="Body" element="tns:int" />
</wsdl:message>
- <wsdl:message name="InsertAnalyzerQueueHttpPostIn">
<wsdl:part name="uploadcustomerkey" type="s:string" />
<wsdl:part name="uploadcustomertype" type="s:string" />
<wsdl:part name="description" type="s:string" />
<wsdl:part name="uploadedfile" type="s:string" />
<wsdl:part name="companionfile" type="s:string" />
<wsdl:part name="emailaddress" type="s:string" />
<wsdl:part name="generatedfilename" type="s:string" />
<wsdl:part name="companyname" type="s:string" />
<wsdl:part name="dealerid" type="s:string" />
<wsdl:part name="phonenbr" type="s:string" />
</wsdl:message>
- <wsdl:message name="InsertAnalyzerQueueHttpPostOut">
<wsdl:part name="Body" element="tns:int" />
</wsdl:message>
<wsdl:message name="MyTestServiceHttpPostIn" />
- <wsdl:message name="MyTestServiceHttpPostOut">
<wsdl:part name="Body" element="tns:string" />
</wsdl:message>
- <wsdl:portType name="ServiceSoap">
- <wsdl:operation name="IsValidReferenceID">
<wsdl:input message="tns:IsValidReferenceIDSoapIn" />
<wsdl:output message="tns:IsValidReferenceIDSoapOut" />
</wsdl:operation>
- <wsdl:operation name="GetDealersUploadedItems">
<wsdl:input message="tns:GetDealersUploadedItemsSoapIn" />
<wsdl:output message="tns:GetDealersUploadedItemsSoapOut" />
</wsdl:operation>
- <wsdl:operation name="UpdateOrderStatus">
<wsdl:input message="tns:UpdateOrderStatusSoapIn" />
<wsdl:output message="tns:UpdateOrderStatusSoapOut" />
</wsdl:operation>
- <wsdl:operation name="InsertAnalyzerQueue">
<wsdl:input message="tns:InsertAnalyzerQueueSoapIn" />
<wsdl:output message="tns:InsertAnalyzerQueueSoapOut" />
</wsdl:operation>
- <wsdl:operation name="MyTestService">
<wsdl:input message="tns:MyTestServiceSoapIn" />
<wsdl:output message="tns:MyTestServiceSoapOut" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:portType name="ServiceHttpGet">
- <wsdl:operation name="IsValidReferenceID">
<wsdl:input message="tns:IsValidReferenceIDHttpGetIn" />
<wsdl:output message="tns:IsValidReferenceIDHttpGetOut" />
</wsdl:operation>
- <wsdl:operation name="GetDealersUploadedItems">
<wsdl:input message="tns:GetDealersUploadedItemsHttpGetIn" />
<wsdl:output message="tns:GetDealersUploadedItemsHttpGetOut" />
</wsdl:operation>
- <wsdl:operation name="UpdateOrderStatus">
<wsdl:input message="tns:UpdateOrderStatusHttpGetIn" />
<wsdl:output message="tns:UpdateOrderStatusHttpGetOut" />
</wsdl:operation>
- <wsdl:operation name="InsertAnalyzerQueue">
<wsdl:input message="tns:InsertAnalyzerQueueHttpGetIn" />
<wsdl:output message="tns:InsertAnalyzerQueueHttpGetOut" />
</wsdl:operation>
- <wsdl:operation name="MyTestService">
<wsdl:input message="tns:MyTestServiceHttpGetIn" />
<wsdl:output message="tns:MyTestServiceHttpGetOut" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:portType name="ServiceHttpPost">
- <wsdl:operation name="IsValidReferenceID">
<wsdl:input message="tns:IsValidReferenceIDHttpPostIn" />
<wsdl:output message="tns:IsValidReferenceIDHttpPostOut" />
</wsdl:operation>
- <wsdl:operation name="GetDealersUploadedItems">
<wsdl:input message="tns:GetDealersUploadedItemsHttpPostIn" />
<wsdl:output message="tns:GetDealersUploadedItemsHttpPostOut" />
</wsdl:operation>
- <wsdl:operation name="UpdateOrderStatus">
<wsdl:input message="tns:UpdateOrderStatusHttpPostIn" />
<wsdl:output message="tns:UpdateOrderStatusHttpPostOut" />
</wsdl:operation>
- <wsdl:operation name="InsertAnalyzerQueue">
<wsdl:input message="tns:InsertAnalyzerQueueHttpPostIn" />
<wsdl:output message="tns:InsertAnalyzerQueueHttpPostOut" />
</wsdl:operation>
- <wsdl:operation name="MyTestService">
<wsdl:input message="tns:MyTestServiceHttpPostIn" />
<wsdl:output message="tns:MyTestServiceHttpPostOut" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="IsValidReferenceID">
<soap:operation soapAction="http://63.237.52.216/service.asmx/IsValidReferenceID" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="GetDealersUploadedItems">
<soap:operation soapAction="http://63.237.52.216/service.asmx/GetDealersUploadedItems" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="UpdateOrderStatus">
<soap:operation soapAction="http://63.237.52.216/service.asmx/UpdateOrderStatus" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="InsertAnalyzerQueue">
<soap:operation soapAction="http://63.237.52.216/service.asmx/InsertAnalyzerQueue" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="MyTestService">
<soap:operation soapAction="http://63.237.52.216/service.asmx/MyTestService" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="IsValidReferenceID">
<soap12:operation soapAction="http://63.237.52.216/service.asmx/IsValidReferenceID" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="GetDealersUploadedItems">
<soap12:operation soapAction="http://63.237.52.216/service.asmx/GetDealersUploadedItems" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="UpdateOrderStatus">
<soap12:operation soapAction="http://63.237.52.216/service.asmx/UpdateOrderStatus" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="InsertAnalyzerQueue">
<soap12:operation soapAction="http://63.237.52.216/service.asmx/InsertAnalyzerQueue" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="MyTestService">
<soap12:operation soapAction="http://63.237.52.216/service.asmx/MyTestService" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:binding name="ServiceHttpGet" type="tns:ServiceHttpGet">
<http:binding verb="GET" />
- <wsdl:operation name="IsValidReferenceID">
<http:operation location="/IsValidReferenceID" />
- <wsdl:input>
<http:urlEncoded />
</wsdl:input>
- <wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="GetDealersUploadedItems">
<http:operation location="/GetDealersUploadedItems" />
- <wsdl:input>
<http:urlEncoded />
</wsdl:input>
- <wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="UpdateOrderStatus">
<http:operation location="/UpdateOrderStatus" />
- <wsdl:input>
<http:urlEncoded />
</wsdl:input>
- <wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="InsertAnalyzerQueue">
<http:operation location="/InsertAnalyzerQueue" />
- <wsdl:input>
<http:urlEncoded />
</wsdl:input>
- <wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="MyTestService">
<http:operation location="/MyTestService" />
- <wsdl:input>
<http:urlEncoded />
</wsdl:input>
- <wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:binding name="ServiceHttpPost" type="tns:ServiceHttpPost">
<http:binding verb="POST" />
- <wsdl:operation name="IsValidReferenceID">
<http:operation location="/IsValidReferenceID" />
- <wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
- <wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="GetDealersUploadedItems">
<http:operation location="/GetDealersUploadedItems" />
- <wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
- <wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="UpdateOrderStatus">
<http:operation location="/UpdateOrderStatus" />
- <wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
- <wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="InsertAnalyzerQueue">
<http:operation location="/InsertAnalyzerQueue" />
- <wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
- <wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="MyTestService">
<http:operation location="/MyTestService" />
- <wsdl:input>
<mime:content type="application/x-www-form-urlencoded" />
</wsdl:input>
- <wsdl:output>
<mime:mimeXml part="Body" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="Service">
- <wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">
<soap:address location="http://63.237.52.216/service.asmx" />
</wsdl:port>
- <wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">
<soap12:address location="http://63.237.52.216/service.asmx" />
</wsdl:port>
- <wsdl:port name="ServiceHttpGet" binding="tns:ServiceHttpGet">
<http:address location="http://63.237.52.216/service.asmx" />
</wsdl:port>
- <wsdl:port name="ServiceHttpPost" binding="tns:ServiceHttpPost">
<http:address location="http://63.237.52.216/service.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Soapfault parsing has a problem in 2.4. Check out the latest 2.5.1 release of ksoap2 for android that I just released.
这篇关于Android 2.1系统和Ksoap2-Android的装配2.4 - 的SOAPFault错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!