Ask the Expert

Implementing ISoapTypeMapper

I am developing a Microsoft SOAP 2.0 client to a WebLogic 6.1 SOAP server. I have a basic client working with non-complex types. Unfortunatly, the WebLogic server returns complex data types for several of the functions. I can't find any good examples on how to implement an ISoapTypeMapper on the Internet (other than to say that is what I need to do). Is this the correct approach? And, can you suggest any sample code that would show me what I need to do? My SOAP client is being developed with MS Visual C++ 6. I unfortunatly don't have the option to change to .NET.

    Requires Free Membership to View

From the Microsoft site: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/soap/htm/soap_adv_1icz.asp

MS SOAP gives you two ways to deal with complex types:

  1. Use the high-level API with a custom type mapper that implements the ISoapTypeMapper interface. You need to manually modify your WSDL and WSML files to specify the type information and the mapper. See: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/soap/htm/soap_adv_7xpv.asp
  2. Use the low-level API and retrieve the the type using IXMLDOMNodeList. See: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/soap/htm/soap_adv_77zm.asp
Here is some VB code (ISoapTypeMapper): Here's some C++ code:

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: