Skip to Content
author's profile photo Former Member
Former Member

ERROR- Unable to get the Response in xcode of mac os

We have installed NWGW plugin in mac os .

When we are trying to browse the services we are able to see only SDATA services in NWGW plugin of mac os.

When we are trying to get the response in xcode we are getting the following error

Returned Query URL: /HREMPPA0002PD

ERROR :: SUPJsonException:expected string, found 140/Location:-[SUPRequest startSynchronous] + 1159

ERROR :: 400:Bad request/Location:-[SUPRequest startSynchronous] + 1184

Exception during parsing response data. Error: The document is not a valid data document

<?xml version="1.0" encoding="utf-8"?> <error ><message xml:lang="en">Malformed URL recieved :no protocol: /HREMPPA0002PD</message> </error>

And iam not able to get the endpoints. I am using the following code in the xcode,

[LiteSUPAppSettings getApplicationEndPoint]

Please provide us the pointers to resolve the issue

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 03, 2012 at 06:34 AM

    Hi Rakesh,

    Which SP of Gateway are you trying to work with?

    Can you post the code that throws this error?

    Generally when working directly through Gateway (without SUP server), the service URL is taken from the service document file. If you used the local file, open it (Services/Resources/[yourServiceName]ServiceDocument.xml) and make sure that the xml:base attribute value of the app:service element corresponds to your service document URL.

    When working through SUP server, please follow our documentation how to switch the generated code to work with it in addition to SUP documentation to understand how to configure your application on Sybase Control Center. To set the service endpoint, call [service setServiceDocumentUrl:[LiteSUPAppSettings getApplicationEndPoint]];

    Let me know if you need further information,

    Guy.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Rakesh,

      ODATA services are supported in SP3+. The tool tries to connect to the SDATA and ODATA catalogs to fetch all available services. When selecting a service, you can verify if it's an SDATA or ODATA service by looking at its URL, below the service list.

      Please open the console after refreshing the list of services to see if there are any errrors related to the ODATA services.

      Thanks,

      Guy

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.