• chinnarowdy
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies

Hi,


I have deployed my java (jax ws) web service in my local system which in a private network.

I am trying to access this web service through SalesForce. I have generated the necessary stubs.

While Calling the web service I am getting the below error:

 

Error Message:
Web service callout failed: Unexpected element. Parser was expecting element 'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found ':HTML'
Error is in expression '{!callWs}' in component <apex:page> in page test

 

My Apex page code:
=================
<apex:page controller="myController" tabStyle="Account" >
<apex:form >
<apex:pageBlock title="Congratulations {!$User.FirstName}">
{!testVariable}
<apex:commandButton action="{!callWs}" value="Call WS"/>
</apex:pageBlock>
</apex:form>
</apex:page>

 

MyController Code:
=================
public class myController {

String testVariable;

public String getTestVariable() {
return testVariable;
}


public PageReference callWs() {


ProcessService.EnterpriseProcessServicesPort myPort = new ProcessService.EnterpriseProcessServicesPort();
ProcessMessages.StartNyssCaseRequest startNyssCaseRequest = new ProcessMessages.StartNyssCaseRequest();
ProcessMessages.StartNyssCaseReply startNyssCaseReply = new ProcessMessages.StartNyssCaseReply();

startNyssCaseRequest.CableUnitNumber='0000000005';
startNyssCaseRequest.CaseNumber='4000021721';
startNyssCaseRequest.ContactPersonId='21331395--TDC--KTV-';
startNyssCaseRequest.ReactionSale=false;
startNyssCaseRequest.SalesRepresentativeId='KAS.P2---4007184487';
startNyssCaseRequest.CaseTypeId='2028629---TDC--KTV-';

myPort.startNyssCase(startNyssCaseRequest);
return null;
}

}

I have added Remote site settings as below:
==================================
Remote Site Name: EnterpriseProcessServices
Remote Site URL: http://10.74.9.83:7001

 

Please help me, where I am doing wrong?

Hi,

 

from SalesForce Organisation I want to access a SOAP web service. But this SOAP web service is deployed in a private
network. If i have to go ahead what network level changes I need to do. Please help