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
-5
votes
0answers
50 views

Named Credential not working with Apex SOAP Callout [duplicate]

I am trying to use Named credential in the SOAP Apex callout in an Apex Class generated from WSDL ( wsdl2apex) to integrate to the Salesforce Marketing Cloud. I am using merge fields to populate the ...
0
votes
0answers
18 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
63 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
89 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
121 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
139 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
37 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
104 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
157 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
162 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
116 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
110 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
110 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
42 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
134 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
99 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
39 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
988 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
50 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
62 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
424 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
232 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
624 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
221 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
734 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
289 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 ...
0
votes
1answer
287 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
112 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
61 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 ...
2
votes
1answer
780 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
250 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
756 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
372 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
729 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
913 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
222 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
352 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
219 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
237 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
498 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">...
1
vote
1answer
560 views

Apex Generation Failed : Unable to find element for {urn:avx.com/us/upi/messaging/UpdateAccountWSV1.0}UpdateName

Apex Generation Failed : Unable to find element for {urn:avx.com/us/upi/messaging/UpdateAccountWSV1.0}UpdateName I am getting the above error while parsing a wsdl . There are no import/include ...
3
votes
1answer
1k views

Tracing the request.xml sent using apex callout

I make an apex callout to an external service by consuming the WSDl file.I use WSDL2Apex class which I generated from WSDL file. I send a XML file as a request formed in my apex class to make a ...
5
votes
2answers
1k views

Apex callout exception when making hitting an external Service

I am looking at a strange exception when I make an apex callout to a external system. I am forming a very simple apex code to hit the endpoint using wsdl2Apex class. I get the below excception: ...
0
votes
1answer
130 views

Adding security on transport layer level

Is there any documentation or reference on how to add username and password to the transport layer when making an apex callout to consume a SOAP based service?
0
votes
1answer
578 views

How to I construct Request for wsdltoApex class

How can I create a SOAP request with SOAP header and make an apex callout through WSDL2Apex class that I generated from WSDL. When I used WSDL2Apex and generated the class I just got one single apex ...
0
votes
1answer
300 views

Null Pointer Exception when testing wsdl2Apex class

I am trying to write a simple apex test class for the wsdl2apex file that i generated, but for some reason I am getting a null pointer exception in the test method which mocks the apex callout. I ...
4
votes
1answer
105 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
1answer
182 views

wsdl2apex- Generating class

We already have a wsdl2apex class . A few new fields will be added in the wsdl coming from 3rd party. Do we need to regenerate the wsdl to apex class again or changes can be done manually ?