Sales Force Integration

Certified Lead Developer

While integrating enterprise SOAP wsdl of salesforce using call web service node or a!webservicequery() function, getting the error

"Received the following HTTP response from the remote server: 405 (APNX-1-4045-001)" which translates to "The method specified in the Request-Line isn’t allowed for the resource specified in the URI." which I believe maybe because the call web service node and a!webservicequery() function pass the method as GET in the request and the wsdl supports POST. Please correct me if I am wrong.

My wsdl version is 43.0. Since it is salesforce enterprise wsdl, I cannot use connectors. Is there a way to integrate the wsdl using call web service node or a!webservicequery()

 

Thanks in advance.

  Discussion posts and replies are publicly visible

Parents
  • Hello AdityaU

    I don't think the error has something to do with http get and post.

    For me it sounds more like a problem in the WSConfig with one of this parameters : service, operation, port. based on the error you shared
    * "The method specified in the Request-Line isn’t allowed for the resource specified in the URI"
    * or maybe another aprameters like wsHttpHeaderField

    I am assuming you already tested the service in an external program like SOAP UI? If so, try to look at the parameters auto-populated when importing the WSDL

    From the Salesforce point of view does the user has the “API Enabled” permission

    As Robert mentioned we need more information about this, it can be useful if you can share your expression to review it (we don;t need the endpoints) .

    Jose
  • 0
    Certified Lead Developer
    in reply to josep

    Hi Jose,

    Below is my expression,

    webservicequery(
    wsConfig:a!wsConfig(
    wsdlUrl: "endpoint url",
    service:"SforceService",
    port:"Soap",
    operation:"describeSObjects",
    wsdlCredentials:a!wsHttpCredentials(
    username:"abc",
    password:"abc"
    )
    ),
    inputVar: {
    describeSObjectsRequest: {"Account"}
    }
    )

    Also, If I pass the endpoint url in SOAP UI while creating a new Project, the error log throws the below error:

    "HTTP/1.1 405 GET not supported".

    Thanks

Reply
  • 0
    Certified Lead Developer
    in reply to josep

    Hi Jose,

    Below is my expression,

    webservicequery(
    wsConfig:a!wsConfig(
    wsdlUrl: "endpoint url",
    service:"SforceService",
    port:"Soap",
    operation:"describeSObjects",
    wsdlCredentials:a!wsHttpCredentials(
    username:"abc",
    password:"abc"
    )
    ),
    inputVar: {
    describeSObjectsRequest: {"Account"}
    }
    )

    Also, If I pass the endpoint url in SOAP UI while creating a new Project, the error log throws the below error:

    "HTTP/1.1 405 GET not supported".

    Thanks

Children