当前位置:编程学习 > C#/ASP.NET >>

高手们,关于web services API的使用,我现在没有头绪,给我点建议和参考也好

现在公司拿到了一个美国公司开发的web services API,现在我们要使用它,我以前没有用过这个

功能其实也简单
比如 填写 个人信息,然后提交,然后API返回信息

现在不知道如何和API交互,不知道数据传输和接受的机制

不知道怎么用这个web services API 

下面我贴点API里面的东西,大家给我建议啊,怎么用

Section 4: Order Web Service Details
The ORDER Web Service is a set of operations for allowing a partner to place or initiate an order.
Test URL: https://test-api.geotrust.com/webtrust/order.jws?WSDL or
https://test-api.thawte.com/webtrust/order.jws?WSDL or
https://test-api.verisign.com/webtrust/order.jws?WSDL
Production URL: https://api.geotrust.com/webtrust/order.jws?WSDL or
https://api.thawte.com/webtrust/order.jws?WSDL or
https://api.verisign.com/webtrust/order.jws?WSDL
NOTE : GeoTrust partners should use the geotrust.com URL, thawte partners should use the thawte.com URLs, and Verisign partners should use the verisign.com URLs. Partners can order products for all our brands from each of the URLs.
The following XML notation conventions are used in this document:
( ) must be followed by *, ? or + to denote cardinality
? 0 or 1
* 0 or more
+ 1 or more
<!-- comments here -->
NOTE: fields marked with a „()?‟ are optional for that command. --------------------编程问答-------------------- 4.1.1 ModifyOrder Request
<ModifyOrder xmlns="http://api.geotrust.com/webtrust/order">
<Request>
<OrderRequestHeader>
<PartnerCode>
(<ProfileName>)?
(<ProductCode>)?
<PartnerOrderID> <!-- Required for this operation -->
<AuthToken>
<UserName>
<Password>
G e o T r u s t C o n f i d e n t i a l
25
</AuthToken>
(<ReplayToken>)?
(<UseReplayToken>)?
</OrderRequestHeader>
<ModifyOrderOperation> <!-- See Section 6.3.3.12 -->
<ModifyOrderReasonMessage> <!-- Text description logged with this event -->
(<SealPreference>)? <-- Required to update the seal preference for an order
(<RequestorEmail>)? <Must be present for SSL cancels after issuance. Value must be Email used for Admin, Tech, or Domain Approver contact>
</Request>
</ModifyOrder>
4.1.2 ModifyOrder Response
<ModifyOrder xmlns="http://api.geotrust.com/webtrust/order">
<Response>
<OrderResponseHeader>
<SuccessCode>
(<Errors>
(<Error>
<ErrorCode>
(<ErrorField>)?
<ErrorMessage>
</Error>)+
</Errors>)*
<Timestamp>
<PartnerOrderID>? <!-- Not returned if there was a fatal error -->
</OrderResponseHeader>
</Response>
</ModifyOrder > --------------------编程问答-------------------- 在某个工程里添加 Service Reference -> 填入 wsdl 地址 -> GO 生成本地代理,即可调用。 --------------------编程问答-------------------- 如果web services 里面有用户名和密码验证,该怎么弄 --------------------编程问答-------------------- 生成的本地代理里,通过SoapHeader 传用户名和密码。 --------------------编程问答-------------------- --------------------编程问答-------------------- 生成wsdl文件
补充:.NET技术 ,  Web Services
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,