私はこのSOAPメッセージを持っていると私はC#のオブジェクトにシリアライズする必要があります。C#の - デシリアライズSOAPメッセージ
<SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAPSDK4:GetStoreInformationResponse xmlns:SOAPSDK4="http://www.example.com/message/">
<StoreInformation>
<StoreID>99612</StoreID>
<BusinessDate>2016-01-28</BusinessDate>
<Address type="Address-US">
<Street>Via Roma 1</Street>
<City>Milano</City>
</Address>
</StoreInformation>
</SOAPSDK4:GetStoreInformationResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
私はシリアライズの多くの例を見つけましたが、私は私の場合にはこれらを適用することはできません。 誰かが私を助けることができますか?
おかげ
ありがとうございましたが、私はこのエラーを受け取ります"return(GetStoreInformationResponse)serializer.Deserialize(reader);":XMLドキュメントでエラーが発生しました。内部の例外は:予期しない –
生成されたC#クラスを投稿できますか? –
下記の私のアンサーを参照してください;) –