2016-10-27 6 views
0

私は2つのwsdlファイルからWebサービスを生成するためにscalaxbを使用しようとしています。 ファイルは以下の通りです:https://services.pwsdemo.com/WSDL/PwsDemo_creditcardtransactionservice.xml
https://services.pwsdemo.com/WSDL/PwsDemo_creditcardmanagementservice.xml
は、私は私のローカルマシンにダウンロードして、次のコマンドを実行しました:私は私のコードでClientCredentialsクラスを持っている
Referenced type {http://schemas.datacontract.org/2004/07/ThreeDelta.Web.Services.ECLinx.Definitions}ClientCredentials was not found.scalaxbにはタイプがありません

、それは本当に簡単です:私はエラーを得た
$ scalaxb PwsDemo_creditcardmanagementservice.xml PwsDemo_creditcardtransactionservice.xml -p delta

を:

class Halo_3Delta_Request_ClientCredentials 
{ 
    protected $ClientCode; 
    protected $UserName; 
    protected $Password; 

    public function __construct($clientCode, $username, $password) 
    { 
     $this->ClientCode = $clientCode; 
     $this->UserName = $username; 
     $this->Password = $password; 
    } 
} 

欠けているタイプを提供するにはどうすればよいでしょうか?

更新:
私は、WSDLファイルに存在し、既にこのタイプの定義を位置:

<xs:complexType name="ClientCredentials"> 
    <xs:sequence> 
     <xs:element minOccurs="0" name="ClientCode" nillable="true" type="xs:string"/> 
     <xs:element minOccurs="0" name="Password" nillable="true" type="xs:string"/> 
     <xs:element minOccurs="0" name="UserName" nillable="true" type="xs:string"/> 
    </xs:sequence> 
    </xs:complexType> 

だから私は、質問は今、彼らは検証に合格して、それらのファイルを再配置する方法であると思います。

答えて

関連する問題