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
2
votes
1answer
152 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 ...
0
votes
1answer
28 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
1answer
59 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
1answer
32 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
1answer
35 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
1answer
40 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 ...
1
vote
1answer
59 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
1answer
55 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
1answer
27 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: ...
0
votes
0answers
25 views

Options for sending arbitrary XML in SOAP request

I have a WSDL from a vendor which includes a method that expects one of the params ('Xmldoc') to be embedded XML. The WSDL for the method: <s:element name="ImportGuest"> <s:complexType>...
1
vote
1answer
153 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 ...
2
votes
1answer
137 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
1answer
213 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> <...
0
votes
1answer
239 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 ...
1
vote
1answer
65 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
1answer
163 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
0answers
241 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
1answer
237 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
1answer
155 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
1answer
153 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 ...
1
vote
1answer
157 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?
0
votes
1answer
48 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
1answer
182 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
0answers
191 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
0answers
47 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'. ...
0
votes
0answers
1k 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
1answer
55 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
1answer
80 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 ...
0
votes
1answer
546 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
1answer
296 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 ...
1
vote
1answer
866 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 ...
3
votes
1answer
297 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 ...
0
votes
1answer
835 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....
1
vote
1answer
467 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: ...
0
votes
1answer
578 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 ...
0
votes
1answer
218 views

GetTax Threw an Exception: Web service callout failed: Unable to parse callout response. Apex type not found for element

I'm calling one SOAP websrvice & have generated class using WSDL to apex functionality. But whenever there are some changes in response parameter in wsdl, I get an error as - "GetTax Threw an ...
0
votes
2answers
67 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 ...
3
votes
1answer
926 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 ...
0
votes
0answers
320 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"/> <...
5
votes
1answer
1k 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-...
0
votes
1answer
496 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: ...
0
votes
1answer
902 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....
1
vote
2answers
1k 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....
1
vote
1answer
265 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: ...
1
vote
1answer
2k 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 ...
1
vote
1answer
414 views

Creating Data Extension using Apex (WSDL2Apex)

I am really struggling to write an Apex Class to create a Data Extension in Marketing Cloud. I have parsed the WSDL and generated the Apex class. From here, not able to write my class to create the ...
1
vote
0answers
249 views

SOAP Call w/o WSDL body too large error

I am working on integrating an asmx webservice into salesforce. I was unable to parse the WSDL into apex, so have to build the calls manually. The call I built works and is received when literal ...
1
vote
0answers
271 views

No data produced from map, please check source profile and make sure it matches source data. NAmespace problem in wsdl link

I used wsdl link, salesforce triggering boomi and sending data. but it is showing error: "No data produced from map, please check source profile and make sure it matches source data." Initially it ...
1
vote
3answers
2k views

Test Class for WSDL2Apex class generated by Salesforce Partner WSDL

I'm using Partner WSDL in my org and generated an APEX class (WSDL2Apex) to connect my org with another salesforce environment. Have anyone done such earlier and if written the test class for its ...
2
votes
1answer
615 views

SOAP callouts: How to define Wrapper class to get node's text as well as the attribute?

I want to use salesforce standard method WebServiceCallout.invoke() to send a request and parse the response. In the response I have a structure like below: <bag> <item item-id="item1">...