+ Start a Discussion
salesforcequestions123salesforcequestions123 

urgent issue

Hi All

 

In my wsdl I have this impl:ArrayOf_xsd_anyType How should i convert this to salesforce

MagulanDuraipandianMagulanDuraipandian

https://sites.google.com/site/infallibletechie/how-to-use-external-wsdl-in-salesforce

 

check this...

 

Regards,

Magulan D

Salesforce.com certified Force.com Developer.

SFDC Blog

SFDC Site

If this post is your solution, kindly mark this as the solution.

salesforcequestions123salesforcequestions123

 

I HAVE CONVERTED MY WSDL TO APEX CODE BUT IN WSDL I HAVE ANYTYPE WHICH I HAVE CONVERTED TO STRING MY PROBLEM IS  I AM GETTING THIS ERROR WHEN I AM TRYING TO INVOKE THE WEBSERVICE CALLOUT

 

 

Web service callout failed: Unexpected element. Parser was expecting element 'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found 'http://www.w3.org/1999/xhtml:html'

 

I DONT KNOW WHY THIS ERROR IS COMING DO U HAVE ANY IDEA

Jeff MayJeff May

The error is actually more helpful than it might first appear:  It sounds like you are not wrapping your payload in a SOAP envelop.  The  element the API is expecting is the envelop, and you are giving it something else.

salesforcequestions123salesforcequestions123

Hi 

 

This is my problem in code can u tell me where i am going wrong

 

I am getting soap  response to these classes in soap format and everything is fine

 

public pagereference GetAssessmentTypes()
{

String SecurityCode='..............................................';
double ScorecardID=-1;
double DepartmentID=4994;
as3 = new prophecyconnect.ProphecyConnect_cfc();
string assesstypes=as3.GetScorecard(SecurityCode,ScorecardID);
system.debug('...................'+assesstypes);
return null;

}

 

 

 

 

but getting error for these

 

public pagereference UnarchiveScorecards()
{
string[] addlist1=new string[]{'1212'};

 

 

String SecurityCode='.................................................';

string[] ScorecardIDs=addlist1;
as3 = new prophecyconnect.ProphecyConnect_cfc();
string[] userupdateresponse=new string[]{as3.UnarchiveScorecards(SecurityCode,ScorecardIDs)};
system.debug('...................'+userupdateresponse);
return null;
}

here there is an array to send so i took an array and sent the request for which i am getting html response instead of soap how to resolve the issue

i asm getting html response instead of soap why is this happening how should i send the array to the external orgamisation

 

for all the array elements i am getting the same isue and working fine for non array classes

de-drekde-drek
Did you find a solution for this? I'm running into the same problem.