81,122
社区成员




String cardDataExchange(String orgCode, String operterInfo,
String businessType, String parameterInfo)
JaxWsDynamicClientFactory clientFactory = JaxWsDynamicClientFactory.newInstance();
String URL="";
Client client = clientFactory.createClient(URL);
Object[] result;
try {
JSONObject jObject = new JSONObject();
jObject.put("a", "1");
jObject.put("b", "1234");
result = client.invoke("cardDataExchange", new Object[]{"111","222","333",jObject.toString()});
Object returnInfo=(Object) result[0];
System.out.println(returnInfo.toString());
} catch (Exception e) {
e.printStackTrace();
}
Unmarshalling Error: unexpected element (uri:"", local:"orgCode") .Expected elements are <{http://carddatabusines.webservice.sccd.app.com/}operterinfo>,<{http://carddatabusines.webservice.sccd.app.com/}businessType>,.......
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://carddatabusines.webservice.sccd.app.com/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" name="GreetingServiceImplService" targetNamespace="http://carddatabusines.webservice.sccd.app.com/">
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://carddatabusines.webservice.sccd.app.com/" elementFormDefault="unqualified" targetNamespace="http://carddatabusines.webservice.sccd.app.com/" version="1.0">
<xs:element name="cardDataExchange" type="tns:cardDataExchange"/>
<xs:element name="cardDataExchangeResponse" type="tns:cardDataExchangeResponse"/>
<xs:complexType name="cardDataExchange">
<xs:sequence>
<xs:element form="qualified" minOccurs="0" name="orgCode" type="xs:string"/>
<xs:element form="qualified" minOccurs="0" name="operterInfo" type="xs:string"/>
<xs:element form="qualified" minOccurs="0" name="businessType" type="xs:string"/>
<xs:element form="qualified" minOccurs="0" name="parameterInfo" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="cardDataExchangeResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>