Help in consuming Java Webservice using C# 2.0
Error:
Client found response content type of 'multipart/related;type="application/xop+xml";boundary="uuid:44b8d14c-dcbb-4024-996d-078c5985a152";start-info="text/xml", but expected "text/xml"...
Above error occur when i try consume Java Webservice using C# 2.0 winform. I had try update the version of my webservice to WSE 3.0(which i set my appconfig with <mtom clientMode="On" serverMode="always" /> and also check a field "Enabled This project for Webservice enhancements"). But still no luck to get it correctly. This is my code:
private void button1_Click(object sender, EventArgs e)
{
WsGetInfo.ServiceImplService ser = new Viewer.WsGetInfo.ServiceImplService();
ser.FindDocsAsync("S1234567A", "ZTMPNPDDSS01");
ser.FindDocsCompleted += new Viewer.WsGetInfo.FindDocsCompletedEventHandler(ser _FindDocsCompleted);
}
private void ser_FindDocsCompleted(object sender, Viewer.WsGetInfo.FindDocsCompletedEventArgs e)
{
//Exception throw here
}
This web service will return me text+binary image.
|