在使用SOAP发布之前传递XML中的值

时间:2017-08-02 07:05:45

标签: xml c#-4.0 soap

我得到一个需要通过SOAP请求发布的xml。我想为XML创建序列化结构,以便我可以在发布之前在xml中轻松传递值。

    <SOAP:Envelope
    xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/' >
    <SOAP:Body UserGUID = '{78521NMF-878F-459N-88514-543BCDE4444}' >
        <m:SaveOrder
            xmlns:m = 'http://www.Ncdc.com/schemas/' >
            <Order UserID = '1' Notes = 'Pick up from ME between 10 am- 1 pm and deliver straight.' 
CustomerID = '85211'  OrderDate = '08/01/2017' >
                <Customer />
                <Stops >
                    <Stop Sequence = '1' StopType = 'P' Note = ''  >
                        <OrderStopPieces >
                            <OrderStopPiece Sequence = '1' PieceAction = 'P' />
                        </OrderStopPieces >
                    </Stop >
                    <Stop Sequence = '2' StopType = 'D' Note = ''  >
                        <OrderStopPieces >
                            <OrderStopPiece Sequence = '1' PieceAction = 'D' />
                        </OrderStopPieces >
                    </Stop >
                </Stops >
                <Jobs >
                    <Job Sequence = '1' />
                </Jobs >
                <Pieces >
                    <Piece Sequence = '1' Pieces = '1' Weight = ''  />
                </Pieces >
            </Order >
        </m:SaveOrder >
    </SOAP:Body >
</SOAP:Envelope >

感谢您的建议和时间

0 个答案:

没有答案