Questions tagged [wsdl2apex]

A tool provided by Salesforce to generate Apex classes from a WSDL that allows for callouts to a SOAP based web service from Apex code.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Error while saving MetadataServiceImported class

Trying to generate a MetadataService class using the instructions on the github repo of financial force, the MetadataServiceImported class generated from the WSDL is not getting saved and it says ...
user avatar
0 votes
1 answer
44 views

What are the best practices for wsdl2apex and SOAP callouts from Salesforce

I wonder, what are the best practices I should apply when I need to integrate Salesforce with an external SOAP webservice? First of all - Apex class names generated with wsdl2apex have names which ...
user avatar
  • 645
0 votes
1 answer
233 views

Failed to Parse WSDL:External schema import not supported

While parsing the WSDL in throws an error as External schema import not supported Error: Failed to parse wsdl: Found schema import from location http://crcind.com/csp/samples/SOAP.ByNameDataSet.cls?...
user avatar
2 votes
1 answer
214 views

What is the meaning of array elements of *type_info variables in SOAP / WSDL auto-generated Apex classes?

Background: As an example, let's put the calculatorServices class from the Apex SOAP Callouts Trailhead Unit on the table. Considering any of the inner classes, for instance doAdd: public class doAdd ...
user avatar
0 votes
0 answers
41 views

3rd Party WSDL is Failing WSDL2Apex

I am migrating an application to the Salesforce environment. We have to make a soap call in order for the application to work appropriately. However, I have run into an issue with the vendors WSDL. ...
user avatar
  • 1,278
2 votes
1 answer
94 views

Apex stub from an xml with attributes

I have created apex stub classes from a wsdl and invoked a external SOAP webservice from it. The response is an xml with attribute in elements. I need to extract the value (which is 'PPPPPP' when wd:...
user avatar
4 votes
1 answer
303 views

Importing Wsdl2Apex with multiple wsdl:part in a wsdl:message

I am trying to import a WSDL in salesforce which contains Multi-part messages. Multi-part messages are not supported by the wsdl2Apex tool. The suggested workaround is to modify the WSDL to generate ...
user avatar
  • 3,259
3 votes
1 answer
1k views

Script Too Large Error While Generating Apex Classes Using Metadata WSDL

While trying to Generate MetadataService classes using the standard Metadata API WSDL from Salesforce, classes I got below error. I think it is related to the length of the Apex class as the lines of ...
user avatar
  • 10.6k
0 votes
1 answer
167 views

Trying to create case to Salesforce org from another salesforce org using SOAP API

I am trying to connect two Salesforce Org and create a case in Client SFDC org via SOAP API by using WSDL files at both end. I have used following code at server for WSDL file generation(and used ...
user avatar
  • 19
2 votes
1 answer
111 views

FuseIT WSDL2Apex Error: Missing namespace for operation

I'm stuck with generating apex classes from this WSDL. Is there a way to solve the missing namespace error? Is there an alternative way to generate apex classes from WSDL? Thank you. <?xml version=...
user avatar
0 votes
1 answer
96 views

How to import MetaDataAPI to my SalesForce project?

I want to Update Picklist Values in a standard field in my project every X time. in my Apex Classes I was writing that function: I search for this error and figure out that I need to import ...
user avatar
0 votes
1 answer
127 views

How to deserialize attributes of SOAP responses in classes generated with wsdl2apex?

I have a class generated with wsdl2apex, which contains some response types, let's say it looks like this: public class ResponseGetData { public SomeDataAttr Data; private String[] ...
user avatar
  • 56
1 vote
1 answer
78 views

Wsdl2apex - Some values not received by SAP

Explanation: Some new fields have been added to the 3rd party system and we got a new WSDL file. Instead of generating a new wsdl2apex class, we needed to make changes to the same wsdl2apex class ...
user avatar
  • 1,024
1 vote
1 answer
324 views

SOAP API response queryresult to insert account records in salesforce

I am trying to fetch the account records from the queryResult of Salesforce to Salesforce integration response. But unable to split from the data. Can someone please help me. string query1 = 'Select ...
user avatar
0 votes
1 answer
149 views

Marketing Cloud SOAP API - How to Retrieve Latest Subscribers?

How to perform a retrieve request to retrieve the LATEST subscribers from Salesforce? <soap:Body> <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI"> <...
user avatar
-1 votes
1 answer
76 views

How to process the raw response generated by the WSDL2Apex Callout?

I am getting a huge chunk of raw response from the WSDL2Apex web service call out and I want it to be able to be processed into APEX Data structures, i.e. lists and maps. Raw Response Snippet: ...
user avatar
1 vote
1 answer
454 views

[Apex]: Changes in Exact Target Partner WSDL to include fueloauth in SOAP Envelope Header

I want to retrieve data from Marketing Cloud Data Extension. Turns out there isn't any REST API for that. Retrieve Data from a Data Extension shows SOAP API can be used but there are no sample for ...
user avatar
2 votes
1 answer
347 views

Wsdl to apex class issue with soap1.2

I was using FindRegistrationService service to generate apex class from FuseIT SFDC Explorer Wsdl2Apex parser. It is giving me below errors. Is it due to SOAP 1.2 services? Is there any way to ...
user avatar
  • 730
1 vote
1 answer
618 views

How to pass an attribute to XML message in SOAP webservice callout

I have a WSDL that I have imported in Salesforce and parsed using the WSDL2APEX option . It generates a sample message like below. <LineItems> <LineItem> <...
user avatar
  • 997
0 votes
1 answer
584 views

Unable to find soap 1.1 address

When attempting to generate Apex from a 3rd party WSDL, I'm getting below error. I noticed this has soap12:binding, I tried to change this to soap11. I still get the error message, and fails to ...
user avatar
1 vote
1 answer
135 views

'FuseIT SFDC Explorer' tool for importing WSDL(with multiple import, include tag and XSD files)

I am trying to import a WSDL in FuseIT tool which has multiple nesting of XSD and other WSDLs in it. I have a folder with all XSD and WSDL files. Now I want to remove nesting from WSDL and combine all ...
user avatar
1 vote
1 answer
324 views

WSDL2Apex not generating type info for class properties

I am using WSDL2Apex tool in FuseIT Explorer to generate Apex classes. After tweaking my wsdl file a bit in order to get it to parse with the tool, all the classes are generated properly with the SOAP ...
user avatar
  • 165
0 votes
0 answers
734 views

unable to convert WSDL to Apex, getting Error: Failed to parse wsdl: targetNamespace not specified in wsdl:definitions

below is code <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <wsse:Security xmlns:wsse="...
user avatar
1 vote
1 answer
500 views

Unable to generate apex classes using WSDL2Apex

I would like to generate apex classes for this WSDL: <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:sch="http://ipg-online.com/ipgapi/schemas/ipgapi" xmlns:soap="http://...
user avatar
  • 8,292
2 votes
1 answer
314 views

When using WSDL2Apex, CDATA tags in WebserviceCallout are encoded

I need to implement a SOAP Request as WebServiceCallout which includes CDATA tags in its request envelope. The marshaller class has been auto-generated and the request is working just fine except that ...
user avatar
  • 23
1 vote
1 answer
352 views

Apex Generation Failed - WSDL problem - SOAP

I'm trying to solve this problem with Salesforce. I'm trying to generate apex classes from WSDL (converted from WADL) Parsing works correcly without any errors and warning. But I can't generate the ...
user avatar
1 vote
1 answer
333 views

WSDL2Apex for Visual Studio Code & Salesforce DX

Is there a WSDL2Apex extension for Visual Studio Code, which would allow us to use a WSDL Url or file to generate Apex classes in our Visual Studio Code Salesforce DX project?
user avatar
  • 8,292
0 votes
1 answer
83 views

wsdl2Apex compilation error for custom exception

I am converting a WSDL to Apex and get the error 'Error: Exception class must extend another Exception class'. I understand that I can fix this by adding 'extends Exception' to the generated class. ...
user avatar
0 votes
1 answer
331 views

WSDL2Apex limitations

I am trying to generate Apex classes from WSDL. I was given a zipped file with one WSDL and three SXD files. After pretty much I've tried it all including consulting with Salesforce I have the final ...
user avatar
1 vote
0 answers
336 views

WSDL Merge (External Entity) [closed]

I am trying to Merge(Consolidate) multiple WSDL into a single WSDL file . Example : <?xml version="1.0" encoding="utf-8" ?> <wsdl:definitions name="ExternalServiceFacade" ...
user avatar
  • 375
2 votes
0 answers
74 views

Sending an HTTP request with an imported WSDL with the string 'http://0X'

I have a WSDL that i consume imported as an Apex class. One of the methods receives one String param that is the account website, and one of our users inserted a website that starts with 'http://06'. ...
user avatar
0 votes
0 answers
2k views

Web service callout failed: WebService returned a SOAP Fault: Server was unable to read request

I have consumed a wsdl in Salesforce.Below is the class which needs to be send as a request public class MEContacts_Request { public Long Contact_Type_Association; public String ...
user avatar
  • 2,551
-1 votes
1 answer
69 views

Not able to generate Wsdl2Apex

I gave up in this task. I want to generate wsdl2apex for below xml but not able to generate. please help. I already tried removing import xml and adding its content from after tag. But I am getting ...
user avatar
0 votes
1 answer
93 views

WSDL class error

Good morning, I have a wsdl that I generated with salesforce, but when I call some methods I get this error: EXCEPTION_THROWN [157]|System.CalloutException: Web service callout failed: Unable to ...
user avatar
0 votes
1 answer
756 views

How to parse WSDL response in Apex?

I'm trying to retrieve data from Birst using WSDL. I generated the WSDL on Salesforce and got the generated Apex classes and the method executeQueryInSpace: public WS_Birst_wwwBirstCom....
user avatar
0 votes
1 answer
377 views

Retrieve data from Birst using WSDL

I'm trying to retrieve data from Birst using WSDL. I generated the WSDL on Salesforce and got the Apex classses. Now I want to use a method called executeQueryInSpace that gets the token response ...
user avatar
1 vote
1 answer
1k views

How to generate generic Apex Code from WSDL?

Is there any process where we can generate apex code whenever the WSDL changes such that changes in the WSDL can be added/updated to the Apex class/classes in a generic way such that we do not have to ...
user avatar
3 votes
1 answer
754 views

WSDL Generate Apex

In a callout, I expect a response like this : Why when I generate this part of the wsdl : In the generated apex class, it doesn't give me the reference of the ResultResponse in the ...
user avatar
0 votes
1 answer
993 views

How to consume external webservice

I got the requirement where I need to consume the WSDL from Workday and create/update contact records in Salesforce. Can someone of you please assist me in how to utilize a WSDL from Workday into apex....
user avatar
1 vote
1 answer
1k views

WSDL Error in Parsing File

I have been trying to parse a WDSL file for Exact Target and also in SFDC, but I get an error that it is not allowing me to generate the apex classes I need. Error: Failed to parse wsdl: Parse error: ...
user avatar
  • 1,095
0 votes
1 answer
2k views

How can i Insert Data in Salesforce using WSDL file of Salesforce using Query?

Query : INSERT INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country) VALUES ('Cardinal', 'Tom B. Erichsen', 'Skagen 21', 'Stavanger', '4006', 'Norway'); I can get data ...
user avatar
0 votes
2 answers
93 views

Integration security

I am integrating Salesforce with a program called IFS. I have the WSDL from IFS and have imported it into Salesforce. My problem is that the WSDL does not have anything about logging into IFS. I do ...
user avatar
  • 327
3 votes
1 answer
1k views

apex file Error: Failed to parse wsdl: schema:targetNamespace can not be null

I am having a wsdl document developed in .net framework. I am trying to create New Apex Code from that WSDL document but I am keep getting errors. I have resolved couple of them and now am getting a ...
user avatar
  • 141
0 votes
0 answers
437 views

Error: Failed to parse wsdl: Unknown element: operation [duplicate]

<wsdl:operation name="postData"> <soap:operation/> <wsdl:input> <soap:header message="tns:Message" part="Security" use="literal"/> <...
user avatar
5 votes
1 answer
2k views

Issue with SOAP Header created via Apex

We are trying to make a SOAP callout to an API. The sample header provided by the API is as follows <env:Header> <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-...
user avatar
0 votes
1 answer
753 views

Multiple namespaces when invoking SOAP webservice

I have a SOAP webservice whose body should contain different namespaces, however the APEX generated classes with FuseIT do not include namespaces when serialized to XML. I'd like to do the following: ...
user avatar
  • 1,602
0 votes
1 answer
1k views

Using Named credential for obtaining sessionid

Currently my code uses salesforce partner wsdl of another salesforce org and obtain the session id. Below is code // apex callout partnerSoapSforceCom.Soap partner = new partnerSoapSforceCom....
user avatar
  • 4,521
1 vote
2 answers
2k views

How to remove name space xmlns from the AddressValidatioRequest Tag in the XML request generated by WSDL class [closed]

Please Help. Want to remove Namespace from xml tag- XML- <?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3....
user avatar
1 vote
1 answer
369 views

Apex callout fails suddenly

I am making an apex SOAP callout to an external system. THe connection worked fine last week but suddenly it is failing now due and it gives me this error: Apex callout Web service callout failed: ...
user avatar
  • 4,521
1 vote
1 answer
3k views

System.CalloutException: Web service callout failed: Unable to find field

Wsdl2Apex Generated Class: public class wwwTheyukicompanyCom1 { public class ProcessSalesInvoicesResponse_element { public wwwTheyukicompanyCom1.ProcessSalesInvoicesResult_element ...
user avatar
  • 2,168