Веб-сервис Axis2 MTOM и клиент .NET для его использования

Итак, у меня есть новая веб-служба Axis2 MTOM, которая корректно работает с клиентом веб-службы на основе Java.

Проблема приходит, когда я пытаюсь добавить сервис (или веб) ссылку на vs2008 и использовать его с сгенерированным кодом. До сих пор все ок ... вот что получается (клиент, запрос и параметр объект)

  • Мы вызываем службу
  • . Получая ответ, он выдает исключение с таким сообщением:

  •   Client found response content type of 'multipart/related; 
      boundary=MIMEBoundaryurn_uuid_6C47CADDECCCB90D951282776406454; 
      type="application/xop+xml"; start="
      <0.urn:uuid:6C47CADDECCCB90D951282776406455@apache.org>"; start-info="text/xml"', 
      but expected 'text/xml'.
    
      The request failed with the error message:
    
    
    MIMEBoundaryurn_uuid_6C47CADDECCCB90D951282776406454
    Content-Type: application/xop+xml; charset=utf-8; type="text/xml"
    Content-Transfer-Encoding: binary
    Content-ID: <0.urn:uuid:6C47CADDECCCB90D951282776406455@apache.org>
    
    <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:sendImageResponse xmlns:ns="http://org/company/ws/services/filetransfer/"><ns:return xmlns:ax213="http://filetransfer.objects.ws.company.com/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ax215="http://filetransfer.responses.objects.ws.company.com/xsd" xsi:type="ax215:SendImageResponse"><ax215:errorCode>1060</ax215:errorCode><ax215:errorMessage>Error ejecutando el servicio</ax215:errorMessage><ax215:output>1060</ax215:output></ns:return></ns:sendImageResponse></soapenv:Body></soapenv:Envelope>
    MIMEBoundaryurn_uuid_6C47CADDECCCB90D951282776406454
    

    Или вопрос будет

    ¿Как установить, чтобы ответ веб-службы axis2 не был mimetype?

    5
    задан Garis M Suero 26 August 2010 в 02:18
    поделиться