Skip to main content

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
1 answer
995 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?...
9 votes
1 answer
4k views

Creating a class by consuming a WSDL document Schema:attribute

I have a problem with salesforce functionality. I've created flat WSDL file but when I am trying to create class in salesforce I still get this error: Error: Failed to parse wsdl: Unsupported ...
3 votes
2 answers
3k 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 ...
1 vote
1 answer
448 views

Error: Failed to parse WSDL: Unable to find complexType for {...}string

My mission is the following : integrate a web service (SOAP protocol) into a dev Salesforce org. I discovered the different way to integrate into Salesforce (reading official Salesforce documentation (...
0 votes
0 answers
77 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 ...
0 votes
1 answer
154 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 ...
2 votes
1 answer
1k views

Where can i find the header information in a webservice callout request?

we are integrating Salesforce and SAP systems. For that we are making a callout to SAP with username and password in the header. When i checked the debug log the callout_request entry contains an xml ...
1 vote
1 answer
1k views

Call method from apex class generated from wsdl file

I don't know how to call method from wsdl file apex class.This is wsdl file Anyone please help me for this.Now i want call "ConvertHistoricalValue" method for get response. How can i call it? ...
2 votes
1 answer
548 views

Fixing a WSDL to work with Salesforce.com

I'm working with a client to integrate their external vendors system into Salesforce.com. Unfortunately, the WSDL the vendor provides does not work with Salesforce.com. There appear to be three issues:...
3 votes
1 answer
631 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 ...
0 votes
0 answers
91 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. ...
2 votes
1 answer
179 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:...
4 votes
1 answer
228 views

Null pointer Exception in test classes when installing the Custom Metadata Loader

I am attempting to install the custom metadata loader into production. Per this issue on the github repo, I'm running into a null pointer exception. I am installing the new version, under the ...
0 votes
1 answer
921 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 ...
4 votes
1 answer
841 views

Creating a Workflow Rule using the Metadata API and MetadataService class

Without using the Migration Tool, I need to create a workflow rule using apex and this MetadataService class. I have the following code, and it does run, however I get a exception in my custom class (...
0 votes
3 answers
2k views

Future Callouts on Deletion of records

I am facing a very simple problem. I want to make a callout on the deletion of records, and push a bunch of to an external service. The problem is described below: Trigger Logic: Map <ID, ...
4 votes
1 answer
464 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 ...
0 votes
1 answer
294 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 ...
2 votes
1 answer
136 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=...
0 votes
1 answer
298 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 ...
0 votes
1 answer
247 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[] ...
1 vote
1 answer
133 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 ...
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-...
1 vote
1 answer
641 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 ...
0 votes
1 answer
227 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"> <...
-1 votes
1 answer
175 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: ...
1 vote
1 answer
624 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 ...
0 votes
1 answer
1k 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....
2 votes
1 answer
510 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 ...
1 vote
1 answer
978 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> <...
1 vote
1 answer
200 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 ...
1 vote
1 answer
416 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 ...
0 votes
0 answers
968 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="...
1 vote
1 answer
612 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://...
2 votes
1 answer
439 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 ...
1 vote
1 answer
622 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?
1 vote
1 answer
559 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 ...
0 votes
1 answer
139 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. ...
0 votes
1 answer
426 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 ...
1 vote
0 answers
448 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" ...
2 votes
0 answers
86 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'. ...
1 vote
1 answer
2k 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 ...
0 votes
0 answers
3k 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 ...
-1 votes
1 answer
73 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 ...
0 votes
1 answer
172 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 ...
4 votes
3 answers
4k views

How to invoke soap web service

I have read through the apex developer's guide - webservice section three times but got more confused. Based on my previous knowledge, invoking a Soap webservice should be something like sending an ...
3 votes
1 answer
1k views

Error in Generate WSDL: Apex Generation Failed Unable to find complexType for {http://soap.sforce.com..}RelationshipReferenceTo

I'm trying to Generate from WSDL. I have created a WSDL for one class containing webservice methods (MyClass) and now generating the class from wsdl in another org. Initially I was getting error ...
0 votes
1 answer
915 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....
0 votes
1 answer
486 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 ...
3 votes
1 answer
1k 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 ...