Question

When using the published API for the publisher has been changed for the endpoints. According to: http://docs.wso2.org/display/AM160/Publisher+APIs#PublisherAPIs-AddUpdateAPI

From APIM 1.6.0 this service accepts endpoint configuration data as a JSON value. In endpoint config JSON you have to specify "endpoint_type" and "production_endpoints" and/or "sandbox_endpoints".

We configure the endpoint as

endpoint_config={"production_endpoints":{"url":"http://my.backend.server/HelloWorldService","config":null},"endpoint_type":"http"}

But what is the syntax if I want to define a WSDL endpoint? And how do I configure basic authentication in the API (username,password)?

Était-ce utile?

La solution

You can provide the endpoint config in the following manner:

endpoint_config={"production_endpoints":{"url":"http://localhost:9763/services/HelloService?wsdl","config":null},"wsdlendpointService":"http://localhost:9763/services/HelloService","wsdlendpointPort":"http://localhost:9763/services/HelloService.HelloServiceHttpSoap11Endpoint","endpoint_type":"wsdl"}

Basically you need to provide the WSDL, Service URL and the port type as a JSON.

When do you mean configuring Basic Authentication are you trying to access a Backend Secured with Basic Authentication or are you trying to secure the API using Basic Authentication?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top