[
https://issues.apache.org/jira/browse/AXIS2-5058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13200647#comment-13200647
]
Kishanthan Thangarajah commented on AXIS2-5058:
-----------------------------------------------
Hi Isuru,
I had a look at this issue and it looks like a problem with HTTPWorker class.
This issue is also there for accessing ?wsdl2 and ?xsd for a hierarchical
service. When the HTTPWorker creates the service name from URI to retrieve the
service, it has to check for hierarchical service names in the URI. Currently
it is done only for ?wsdl. This check is not there for wsdl2 and xsd document
retrievals. So the above problem arises. If we add the checking for all types
of documents, then this will not be a problem.
I'm adding a fix for this.
Thanks,
Kishanthan.
> Error while accessing the schema of a hierarchical service which has a schema
> import in the WSDL
> ------------------------------------------------------------------------------------------------
>
> Key: AXIS2-5058
> URL: https://issues.apache.org/jira/browse/AXIS2-5058
> Project: Axis2
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.6.0
> Reporter: Isuru Eranga Suriarachchi
> Assignee: Isuru Eranga Suriarachchi
> Priority: Critical
> Fix For: nightly
>
>
> When accessing the schema of a hierarchical service which has a schema import
> in the WSDL, following error occurs.
> [ERROR] The endpoint reference (EPR) for the Operation not found is
> /axis2/services/foo/bar/SampleService?xsd=SampleService_schema1.xsd and the
> WSA Action = null. If this EPR was previously reachable, please contact the
> server administrator.
> org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
> not found is
> /axis2/services/foo/bar/SampleService?xsd=SampleService_schema1.xsd and the
> WSA Action = null. If this EPR was previously reachable, please contact the
> server administrator.
> at
> org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:102)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
> at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144)
> at
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:139)
> at
> org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:275)
> at
> org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
> at
> org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
> at
> org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:619)
> Therefore, such a service can't be invoked by a client as the client can't
> access the schema.
> Thanks,
> ~Isuru
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]