Link to home
Start Free TrialLog in
Avatar of lapucca
lapucca

asked on

Error calling a java Soap api that was added as a web service

Hi, I'm using vs2013, asp.net and c#.
I'm getting this long exception message when I call an API method.  The java soap api uses MTOM protocol.  I think this creates the problem receiving the result from api and creates an exception when I call the api.  I added this to my web.config file but I still get the same error.
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding messageEncoding="Mtom">
        </binding>
      </basicHttpBinding>
    </bindings>
  </system.serviceModel>

Open in new window


In the exception message it does contain the data that is returning to me.   I attached the message file.

How to fix this? Thank you.
soap-api-error-expception.txt
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lapucca
lapucca

ASKER

How do I check that?  Thank you.
Avatar of lapucca

ASKER

I can't even run the program because all the methods are exposed as classes so how do I know if the binding is used or not?
Avatar of lapucca

ASKER

Doesn't use the web config binding when it's added as web services.