php wsdl新手

半醉人间 发布于 2013/04/27 14:48
阅读 190
收藏 0
PHP

接口方法:
 <wsdl:operation name="saveSponsorUserContact">
      <soap:operation soapAction="" style="document" />
      <wsdl:input name="saveSponsorUserContact">
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output name="saveSponsorUserContactResponse">
        <soap:body use="literal" />
      </wsdl:output>
</wsdl:operation>
接口:
@WebService
public interface SponsorUserContactInfoService {

 @WebMethod(operationName = "saveSponsorUserContact")
 @WebResult(name = "string")
 String saveSponsorUserContact(@WebParam(name = "jsontext") String[] jsontext);
}

例子1(以下字段必填项,都必须有值):jsontext=
[{"campaign_Code":"1GIG035RN1","name":"测试web","gender":"F","dOB":"1985-01-01","mobile":"15112522336","whereCallingFrom":"广东省深圳","emailAddress":"fangliangjin@124.com","iq_ID":"96000208","running_No":"CH20121015E0001","activity":"Contact","submission_Date":"20121212 12:23:00","remark":"年龄20岁"}]

 

 

这个是对方给的接口方法,PHP怎么样实现呢,对方还有一个URL地址。

返回顶部
顶部