I try to use java web server from .Net wcf client. In Visual Studio I generate SealingServicesClient. The service method must return byte[]
byte[] sealedDoc = File.ReadAllBytes(_SealedFileName);
using (var srv = new SealingServicesClient())
{
srv.ClientCredentials.UserName.UserName = _User;
srv.ClientCredentials.UserName.Password = _Pass;
byte[] unsealedDoc = srv.Unseal(sealedDoc); // error
}
And get this error:
The content type multipart/related;start="";type="application/xop+xml";boundary="uuid:06ce2203-47e2-4d86-9b39-083a5b4a2e7a";start-info="text/xml" of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 752 bytes of the response were: '--uuid:06ce2203-47e2-4d86-9b39-083a5b4a2e7a Content-Id: Content-Type: application/xop+xml;charset=utf-8;type="text/xml" Content-Transfer-Encoding: binary
<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns4:UnsealResponse xmlns:ns5="http://xmlns.oracle.com/irm/system/wsdl" xmlns:ns4="http://xmlns.oracle.com/irm/content/wsdl" xmlns:ns3="http://xmlns.oracle.com/irm/content" xmlns:ns2="http://xmlns.oracle.com/irm/core"><return><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:[email protected]"/></return></ns4:UnsealResponse></S:Body></S:Envelope>'.
What does it mean? Service documentation and example on Java http://download.oracle.com/docs/cd/E17904_01/user.1111/e12326/isvwscodesamples002.htm#BABJIBCE
Thanks.