パラメータをDTOとして受け入れる.NETのWebサービスがあります。SOAP UIを使用して値を渡すと、オブジェクトが.NETWebサービスに送られません。
私のDTOはget、set Classであり、このDTOを以下のようにWebサービスメソッドで使用しています。
getQuote(RequestDTO requestDTO)
以下のリクエストのようにSOAPUIを使用してテストすると、メソッドrequestDTO
に関して常にが入ります。しかし、このWebサービスを呼び出すサンプルの.NET ASPXページでテストすると、正常に機能します。null
getQuote
以下は私がSOAPUIに持っているリクエストです。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<getQuotes>
<requestQuoteDTO>
<SystemID>123</SystemID>
<RequestCircuitID>6012344</RequestCircuitID>
<PriceAllNodes>false</PriceAllNodes>
<siteDTO>
<SiteName>Test SOAPUI</SiteName>
<Street1>5 St Johns Lane</Street1>
<Street2></Street2>
<City>London</City>
<PostCode>EC1M 4BH</PostCode>
<State></State>
<Country>GBR</Country>
<Wirecentre></Wirecentre>
<SitePhoneNumber></SitePhoneNumber>
<Latitude></Latitude>
<Longitude></Longitude>
</siteDTO>
<ProductRef>PIP</ProductRef>
<SpeedRef>4 Mbps</SpeedRef>
<LineTypeRef>Ethernet</LineTypeRef>
<ContractTerm>2</ContractTerm>
</requestQuoteDTO>
</getQuotes>
</soapenv:Body>
</soapenv:Envelope>