2017-11-20 17 views
0

私はservicex.comに行って自分のSOAPサービスのスキルを確認しましたが、このエラーが発生しています。私を助けることができる人はいますか?com.sun.xml.internal.ws.fault.ServerSOAPFaultException:クライアントからSOAPフォールトが受信されました

ありがとうございました 私はサービスを消費する私のメインクラスです。

import java.util.Scanner; 

import net.webservicex.ArrayOfAddress; 
import net.webservicex.USAddressVerification; 
import net.webservicex.USAddressVerificationSoap; 
import net.webservicex.VerifyAddressResponse; 


public class AddressValidation { 


    public static void main(String [] arg) { 

     @SuppressWarnings("resource") 
     Scanner in = new Scanner (System.in); 
     System.out.println("enter the city "); 
      String city = in.nextLine(); 
      System.out.println("enter the state "); 
      String state = in.nextLine(); 
      System.out.println("enter the zip "); 
      String zip = in.nextLine(); 

      // service end point interface 
      USAddressVerification addressVerification= new USAddressVerification(); 
      USAddressVerificationSoap addressVerificationSoap = addressVerification.getUSAddressVerificationSoap(); 
      ArrayOfAddress USAddress = addressVerificationSoap.verifyAddress(city, state, zip); 
      VerifyAddressResponse reponse = new VerifyAddressResponse(); 
    reponse.setVerifyAddressResult(USAddress); 

      System.out.println("The Address is:" + reponse.getVerifyAddressResult()); 
     } 



} 

答えて

0

私のために働きます。

Use built-in generate webservice client of ECLIPSE,次のコードを記述します。

USAddressVerificationSoap addressVerificationSoap= new USAddressVerificationSoapProxy(); 
    Address[] USAddress = addressVerificationSoap.verifyAddress(city, state, zip); 
+0

そのクライアントの問題:あなたがここにhttp://www.webservicex.net/New/Home/ServiceDetail/77 – silfrede

+0

おかげで、あなたを私のWSDLをテストすることができます。サービスはまだ正常に動作していたので、あなたのために働く – silfrede

関連する問題