Erro ao Testar retorno do web service

2 respostas
farzac

Ola pessoal

Estou testando o web service USAddressVerificationSoap que ja vem com netbeans instalado

Porem estou com o seguinte erro :

Invalid user identification format. com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:187) com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:108) com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:254) com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224) com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117) $Proxy94.verifyAddressUSA(Unknown Source) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.netbeans.modules.websvc.manager.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:731) org.netbeans.modules.websvc.manager.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:722) java.lang.Thread.run(Thread.java:619)

Alguem sabe a solucao para este erro.

Desde ja, muito obrigado.

2 Respostas

rodrigues.danilo

Qual o WSDL?

farzac

O WSDL QUE SEGUE ABAIXO:

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:http=“<a href="http://schemas.xmlsoap.org/wsdl/http/">http://schemas.xmlsoap.org/wsdl/http/</a> xmlns:soap=“<a href="http://schemas.xmlsoap.org/wsdl/soap/">http://schemas.xmlsoap.org/wsdl/soap/</a> xmlns:s=“<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a> xmlns:si=“<a href="http://www.strikeiron.com">http://www.strikeiron.com</a> xmlns:soapenc=“<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a> xmlns:tm=“<a href="http://microsoft.com/wsdl/mime/textMatching/">http://microsoft.com/wsdl/mime/textMatching/</a> xmlns:mime=“<a href="http://schemas.xmlsoap.org/wsdl/mime/">http://schemas.xmlsoap.org/wsdl/mime/</a> targetNamespace=“<a href="http://www.strikeiron.com">http://www.strikeiron.com</a> xmlns:wsdl=“<a href="http://schemas.xmlsoap.org/wsdl/">http://schemas.xmlsoap.org/wsdl/</a>”>

<a>wsdl:types</a>

<s:schema elementFormDefault=“qualified” targetNamespace=“<a href="http://www.strikeiron.com">http://www.strikeiron.com</a>”>

<s:element name=“VerifyAddressUSA”>

<s:complexType>

<s:sequence>

<s:element minOccurs=“0” maxOccurs=“1” name=“UnregisteredUserEmail” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“UserID” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“Password” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“addressLine1” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“addressLine2” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“city_state_zip” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“firm” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“urbanization” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” default=“Upper” name=“casing” type=“si:casingEnum” />

</s:sequence>

</s:complexType>

</s:element>

<s:simpleType name=“casingEnum”>

<s:restriction base=“s:string”>

<s:enumeration value=“Upper” />

<s:enumeration value=“Lower” />

<s:enumeration value=“Proper” />

</s:restriction>

</s:simpleType>

<s:element name=“VerifyAddressUSAResponse”>

<s:complexType>

<s:sequence>

<s:element minOccurs=“0” maxOccurs=“1” name=“VerifyAddressUSAResult” type=“si:USAddress” />

<s:element name=“SISubscriptionInfo” type=“si:SISubscriptionInfo” />

</s:sequence>

</s:complexType>

</s:element>

<s:complexType name=“USAddress”>

<s:complexContent mixed=“false”>

<s:extension base=“si:Address”>

<s:sequence>

<s:element minOccurs=“0” maxOccurs=“1” name=“State” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“Urbanization” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“ZipPlus4” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“Zip” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“ZipAddOn” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“CarrierRoute” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“PMB” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“PMBDesignator” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“DeliveryPoint” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“DPCheckDigit” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“LACS” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“CMRA” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“DPV” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“DPVFootnote” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“RDI” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“RecordType” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“CongressDistrict” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“County” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“CountyNumber” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“StateNumber” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“GeoCode” type=“si:USGeoCode” />

</s:sequence>

</s:extension>

</s:complexContent>

</s:complexType>

<s:complexType name=“Address” abstract=“true”>

<s:sequence>

<s:element minOccurs=“0” maxOccurs=“1” name=“AddressLine1” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“AddressLine2” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“StreetNumber” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“Firm” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“PreDirection” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“StreetName” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“StreetType” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“PostDirection” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“Extension” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“ExtensionNumber” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“Village” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“City” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“AddressStatus” type=“s:string” />

<s:element minOccurs=“1” maxOccurs=“1” name=“AddressErrorNumber” type=“s:int” />

<s:element minOccurs=“0” maxOccurs=“1” name=“AddressErrorMessage” type=“s:string” />

</s:sequence>

</s:complexType>

<s:complexType name=“USGeoCode”>

<s:complexContent mixed=“false”>

<s:extension base=“si:GeoCode”>

<s:sequence>

<s:element minOccurs=“0” maxOccurs=“1” name=“CensusTract” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“StateNumber” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“CountyNumber” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“BlockNumber” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“BlockGroup” type=“s:string” />

</s:sequence>

</s:extension>

</s:complexContent>

</s:complexType>

<s:complexType name=“GeoCode”>

<s:sequence>

<s:element minOccurs=“1” maxOccurs=“1” name=“Latitude” type=“s:double” />

<s:element minOccurs=“1” maxOccurs=“1” name=“Longitude” type=“s:double” />

</s:sequence>

</s:complexType>

<s:element name=“ResponseInfo” type=“si:ResponseInfo” />

<s:complexType name=“ResponseInfo”>

<s:sequence>

<s:element minOccurs=“1” maxOccurs=“1” name=“ResponseCode” type=“s:int” />

<s:element minOccurs=“0” maxOccurs=“1” name=“Response” type=“s:string” />

</s:sequence>

</s:complexType>

<s:element name=“VerifyAddressUSABatch”>

<s:complexType>

<s:sequence>

<s:element minOccurs=“0” maxOccurs=“1” name=“UnregisteredUserEmail” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“UserID” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“Password” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“address” type=“si:ArrayOfUSBatchAddress” />

<s:element minOccurs=“0” maxOccurs=“1” default=“Upper” name=“casing” type=“si:casingEnum” />

</s:sequence>

</s:complexType>

</s:element>

<s:complexType name=“ArrayOfUSBatchAddress”>

<s:sequence>

<s:element minOccurs=“0” maxOccurs=“unbounded” name=“USBatchAddress” nillable=“true” type=“si:USBatchAddress” />

</s:sequence>

</s:complexType>

<s:complexType name=“USBatchAddress”>

<s:sequence>

<s:element minOccurs=“0” maxOccurs=“1” name=“addressLine1” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“addressLine2” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“city_state_zip” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“firm” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“urbanization” type=“s:string” />

</s:sequence>

</s:complexType>

<s:element name=“VerifyAddressUSABatchResponse”>

<s:complexType>

<s:sequence>

<s:element minOccurs=“0” maxOccurs=“1” name=“VerifyAddressUSABatchResult” type=“si:ArrayOfUSAddress” />

<s:element name=“SISubscriptionInfo” type=“si:SISubscriptionInfo” />

</s:sequence>

</s:complexType>

</s:element>

<s:complexType name=“ArrayOfUSAddress”>

<s:sequence>

<s:element minOccurs=“0” maxOccurs=“unbounded” name=“USAddress” nillable=“true” type=“si:USAddress” />

</s:sequence>

</s:complexType>

<s:complexType name=“SILicenseInfo”>

<s:sequence>

<s:element minOccurs=“0” maxOccurs=“1” name=“UnregisteredUserEmail” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“UserID” type=“s:string” />

<s:element minOccurs=“0” maxOccurs=“1” name=“Password” type=“s:string” />

</s:sequence>

</s:complexType>

<s:element name=“SILicenseInfo” type=“si:SILicenseInfo” />

<s:complexType name=“SISubscriptionInfo”>

<s:sequence>

<s:element name=“LicenseStatusCode” type=“s:int” />

<s:element minOccurs=“0” name=“LicenseStatus” type=“s:string” />

<s:element name=“LicenseActionCode” type=“s:int” />

<s:element minOccurs=“0” name=“LicenseAction” type=“s:string” />

<s:element name=“RemainingHits” type=“s:int” />

<s:element name=“Amount” type=“s:decimal” />

</s:sequence>

</s:complexType>

<s:element name=“SISubscriptionInfo” type=“si:SISubscriptionInfo” />

</s:schema>

</wsdl:types>

<wsdl:message name=“VerifyAddressUSASoapIn”>

<wsdl:part name=“parameters” element=“si:VerifyAddressUSA” />

</wsdl:message>

<wsdl:message name=“VerifyAddressUSASoapOut”>

<wsdl:part name=“parameters” element=“si:VerifyAddressUSAResponse” />

</wsdl:message>

<wsdl:message name=“VerifyAddressUSAResponseInfo”>

<wsdl:part name=“ResponseInfo” element=“si:ResponseInfo” />

</wsdl:message>

<wsdl:message name=“VerifyAddressUSABatchSoapIn”>

<wsdl:part name=“parameters” element=“si:VerifyAddressUSABatch” />

</wsdl:message>

<wsdl:message name=“VerifyAddressUSABatchSoapOut”>

<wsdl:part name=“parameters” element=“si:VerifyAddressUSABatchResponse” />

</wsdl:message>

<wsdl:message name=“VerifyAddressUSABatchResponseInfo”>

<wsdl:part name=“ResponseInfo” element=“si:ResponseInfo” />

</wsdl:message>

<wsdl:message name=“GetRemainingHitsSoapIn”>

<wsdl:part name=“parameters” element=“si:SILicenseInfo” />

</wsdl:message>

<wsdl:message name=“GetRemainingHitsSoapOut”>

<wsdl:part name=“parameters” element=“si:SISubscriptionInfo” />

</wsdl:message>

<wsdl:portType name=“USAddressVerificationSoap”>

<wsdl:operation name=“VerifyAddressUSA”>

<wsdl:input message=“si:VerifyAddressUSASoapIn” />

<wsdl:output message=“si:VerifyAddressUSASoapOut” />

</wsdl:operation>

<wsdl:operation name=“VerifyAddressUSABatch”>

<wsdl:input message=“si:VerifyAddressUSABatchSoapIn” />

<wsdl:output message=“si:VerifyAddressUSABatchSoapOut” />

</wsdl:operation>

<wsdl:operation name=“GetRemainingHits”>

<wsdl:input message=“si:GetRemainingHitsSoapIn” />

<wsdl:output message=“si:GetRemainingHitsSoapOut” />

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name=“USAddressVerificationSoap” type=“si:USAddressVerificationSoap”>

<soap:binding transport=“<a href="http://schemas.xmlsoap.org/soap/http">http://schemas.xmlsoap.org/soap/http</a> style=“document” />

<wsdl:operation name=“VerifyAddressUSA”>

<soap:operation soapAction=“<a href="http://www.strikeiron.com/VerifyAddressUSA">http://www.strikeiron.com/VerifyAddressUSA</a> style=“document” />

<a>wsdl:input</a>

<soap:body use=“literal” />

</wsdl:input>

<a>wsdl:output</a>

<soap:body use=“literal” />

<soap:header message=“si:VerifyAddressUSAResponseInfo” part=“ResponseInfo” use=“literal” />

</wsdl:output>

</wsdl:operation>

<wsdl:operation name=“VerifyAddressUSABatch”>

<soap:operation soapAction=“<a href="http://www.strikeiron.com/VerifyAddressUSABatch">http://www.strikeiron.com/VerifyAddressUSABatch</a> style=“document” />

<a>wsdl:input</a>

<soap:body use=“literal” />

</wsdl:input>

<a>wsdl:output</a>

<soap:body use=“literal” />

<soap:header message=“si:VerifyAddressUSABatchResponseInfo” part=“ResponseInfo” use=“literal” />

</wsdl:output>

</wsdl:operation>

<wsdl:operation name=“GetRemainingHits”>

<soap:operation soapAction=“<a href="http://wsparam.strikeiron.com/StrikeIron/USAddressVerification4_0/USAddressVerification/GetRemainingHits">http://wsparam.strikeiron.com/StrikeIron/USAddressVerification4_0/USAddressVerification/GetRemainingHits</a> />

<a>wsdl:input</a>

<soap:body use=“literal” />

</wsdl:input>

<a>wsdl:output</a>

<soap:body use=“literal” />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name=“USAddressVerification”>

<wsdl:port name=“USAddressVerificationSoap” binding=“si:USAddressVerificationSoap”>

<soap:address location=“<a href="http://wsparam.strikeiron.com/StrikeIron/USAddressVerification4_0/USAddressVerification">http://wsparam.strikeiron.com/StrikeIron/USAddressVerification4_0/USAddressVerification</a> />

</wsdl:port>

</wsdl:service>

</wsdl:definitions>
Criado 7 de agosto de 2008
Ultima resposta 7 de ago. de 2008
Respostas 2
Participantes 2