Adding attribute to a field in webMethods

Hello,

I have a working SOAP UI message that creates a customer in RightNow. When I try to do the same thing through webMethods, it complains - ‘Name attribute under RNObject[0] is not expected’.

I did some research and found out that i have to pass following line as an attribute to RNObject field:
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:type=“ns4:Organization”

How can I pass additional attribute to any field in webMethods. It is not part of the WSDL.

Here is the working SOAP UI Sample:

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:ns2=“urn:generic.ws.rightnow.com/v1_2” xmlns:ns7=“urn:messages.ws.rightnow.com/v1_2” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” >
soapenv:Header
<ns7:ClientInfoHeader soapenv:mustUnderstand=“0”>
ns7:AppIDGeneric Create Sample</ns7:AppID>
</ns7:ClientInfoHeader>
<wsse:Security xmlns:wsse=“http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd” mustUnderstand=“1”>
wsse:UsernameToken
wsse:Usernametkapadi</wsse:Username>
<wsse:Password Type=“http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText”>Infoblox1</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>

</soapenv:Header>
soapenv:Body
ns7:Create
[color=darkred] <ns7:RNObjects xmlns:ns4=“urn:objects.ws.rightnow.com/v1_2” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:type=“ns4:Organization”>
[/color] ns4:NameTusharTest2</ns4:Name>
</ns7:RNObjects>
ns7:ProcessingOptions
ns7:SuppressExternalEventsfalse</ns7:SuppressExternalEvents>
ns7:SuppressRulesfalse</ns7:SuppressRules>
</ns7:ProcessingOptions>
</ns7:Create>
</soapenv:Body>
</soapenv:Envelope>

Any help would be appreciated.

Thanks,
–Tushar

Have you found an answer to your question yet?

Instead of finding a solution for this, I’d suggest that you simplify you WS interface. Just use a simple String type for your xml payload and other parameters.
This will help to decouple your transport layer from your business layer.
In the String payload, you can use whatever attributes, namespace you want.
Further more, you won’t need to change your WS interface when you need to upgrade your payload XML definition.