带附件的Request 为什么不能执行SoapAction中的方法
这个是不添加附件访问就没有问题
当前时间:2010-8-2 11:28:06 , 描述:应用程序开始请求: 开始时间2010-8-2 11:28:06发起者IP:127.0.0.1请求方式:POST 请求路径:/ct/IsmpSpEngineService.asmx以下是请求Header:
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8
Host: localhost:6636
User-Agent: Axis2
SOAPAction: "http://www.chinatelecom.com.cn/wsdl/ctcc/sms/notification/v2_1/service/SmsNotification/notifySmsDeliveryReceiptRequest"
当前时间:2010-8-2 11:28:06 , 描述: "访问方法成功"
以下是我在请求当中添加了 附件 就没有执行SoapAction中的方法
当前时间:2010-8-2 18:27:04 , 描述:应用程序开始请求: 开始时间2010-8-2 18:27:04发起者IP:127.0.0.1请求方式:POST 请求路径:/ct/IsmpSpEngineService.asmx以下是请求Header:
Transfer-Encoding: chunked
Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_E34FBA3C070CFD84531280744819922725; type="text/xml"; start="<0.urn:uuid:E34FBA3C070CFD84531280744819922726@apache.org>"; charset=UTF-8
Host: localhost:6636
User-Agent: Axis2
SOAPAction: "http://www.chinatelecom.com.cn/wsdl/ctcc/易做图_messaging/notification/v2_2/service/MessageNotification/notifyMessageReceptionRequest"
这是webservice中的方法
[System.Web.Services.Protocols.SoapHeaderAttribute("NotifySOAPHeaderValue")]
[System.Web.Services.WebMethodAttribute()]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.chinatelecom.com.cn/wsdl/ctcc/易做图_messaging/notification/v2_2/service/MessageNotification/notifyMessageReceptionRequest", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Bare, Binding = "MessageNotificationBinding")]
[return: System.Xml.Serialization.XmlElementAttribute("notifyMessageReceptionResponse", Namespace = "http://www.chinatelecom.com.cn/schema/ctcc/易做图_messaging/notification/v2_2/local")]
public override notifyMessageReceptionResponse notifyMessageReceptionRequest([System.Xml.Serialization.XmlElementAttribute("notifyMessageReception", Namespace = "http://www.chinatelecom.com.cn/schema/ctcc/易做图_messaging/notification/v2_2/local")] notifyMessageReception notifyMessageReception1)
{
Log.WriteInfo("访问方法成功");
return new notifyMessageReceptionResponse();
}
补充:.NET技术 , ASP.NET