Does anyone know how to handle abstract types defined in wsdl with ServiceNow

ChrisBurks
Mega Sage

I'm receiving an error in a SOAP response like this:

<faultcode>soapenv:Server.userException</faultcode>

<faultstring>org.xml.sax.SAXException: {urn:core_2014_2.platform.webservices.netsuite.com}BaseRef is an abstract type and cannot be instantiated</faultstring>

Here's an example of the request body:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:messages_2014_2.platform.webservices.netsuite.com" xmlns:urn1="urn:core_2014_2.platform.webservices.netsuite.com">

...

<soapenv:Body>

          <urn:get>

                <urn:baseRef   internalId="xxxx" type="contact">

                      <!--Optional:-->

                      <urn1:name></urn:name>

                </urn:baseRef>

          </urn:get>

    </soapenv:Body>

</soapenv:Envelope>

Any help would be much appreciated.

Thanks

1 ACCEPTED SOLUTION

ChrisBurks
Mega Sage

Thank you Myla Jordan for your eyes and attention to detail.


View solution in original post

3 REPLIES 3

ChrisBurks
Mega Sage

Thank you Myla Jordan for your eyes and attention to detail.


Hi,



I am not able to see answer. can you please share the answer for this please.



Thanks,


Sowjanya.


Hi Sowjanya,



You can't see the answer because it wasn't posted here. It was worked out internally.



The answer to our issue was that not all of the namespace definitions were provided within the WSDL that was given to us. We had to add the namespaces and where they pointed to the WSDL.