[jira] Commented: (TUSCANY-2043) documentBaseURI is null when multiple wsdls in contribution with same namespace

2008-02-14 Thread Lou Amodeo (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569150#action_12569150
 ] 

Lou Amodeo commented on TUSCANY-2043:
-

Thank You for the responses. 

I upgraded from Axis 1.2 to Axis 1.3 and now I see additional issues. It 
appears that Axis 1.3 cannot handle the wsd4l facade.  


1) 2 wsdl with same target namspace as sent earlier..  The WSDL aggregation 
process occurs creating a wsdl4j facade. Notice 
the 2 imports 1st for callback  wsdl and 2nd for service wsdl.   They both 
have same namespace. 

Definition: name={http://helloworld}$aggregated$ 
targetNamespace=http://helloworld
[Import:
namespaceURI=http://helloworld
locationURI=file:/C:/WASV7Alpha/AppServer/profiles/SOAAppSrv01/installedAssets/helloworld-ws-asynchclient.jar/1.0/helloworld-ws-asynchclient.jar/WEB-INF/wsdl/helloworld.HelloWorldCallback.wsdl
definition=file:/C:/WASV7Alpha/AppServer/profiles/SOAAppSrv01/installedAssets/helloworld-ws-asynchclient.jar/1.0/helloworld-ws-asynchclient.jar/WEB-INF/wsdl/helloworld.HelloWorldCallback.wsdl
definition namespaceURI=http://helloworld, Import:
namespaceURI=http://helloworld
locationURI=file:/C:/WASV7Alpha/AppServer/profiles/SOAAppSrv01/installedAssets/helloworld-ws-asynchclient.jar/1.0/helloworld-ws-asynchclient.jar/WEB-INF/wsdl/helloworld.HelloWorldService.wsdl
definition=file:/C:/WASV7Alpha/AppServer/profiles/SOAAppSrv01/installedAssets/helloworld-ws-asynchclient.jar/1.0/helloworld-ws-asynchclient.jar/WEB-INF/wsdl/helloworld.HelloWorldService.wsdl
definition namespaceURI=http://helloworld]

2)  Service definition is built from the wsdl 

Axis2ServiceClient.java 

  AxisService axisService = serviceBuilder.populateService();   


3) execption is thrown as Axis2 says it cant find the service in the wsdl. 

org.apache.axis2.description.WSDL11ToAxisServiceBuilder populateService Service 
{http://helloworld}HelloWorldService was not found in the WSDL
 org.apache.axis2.AxisFault: Service {http://helloworld}HelloWorldService 
was not found in the WSDL

4) Remove the callback wsdl entirely and populateService completes 
successfully.  This is because the aggregator proceess doesnt occcur and a full 
wslddefinition is used for the service. 

> documentBaseURI is null when multiple wsdls in contribution with same 
> namespace   
> --
>
> Key: TUSCANY-2043
> URL: https://issues.apache.org/jira/browse/TUSCANY-2043
> Project: Tuscany
>  Issue Type: Bug
>Reporter: Lou Amodeo
>Assignee: Simon Laws
> Fix For: Java-SCA-1.2
>
> Attachments: helloworld-ws-asynch.jar
>
>
> I have a case where there are 2 wsdl files in the contribution with the same 
> namespace.  After the WSDL resolution the 
> documentBaseURI attribute of the wsdl's  DefinitionImpl is null.  The is 
> normally completed in the WebServiceBindingProcessor.resolve().   In this 
> particular case there are 2 binding.ws elements in the contribution.  One for 
> the service and one for its  binding.   If I change the TNS of one 
> of the WSDL files then the documnetBaseURI is filled in during the 
> WebServiceBindingProcessor.resolve.   So it appears there is in issue in the 
> WSDL Model resolver when it finds multiple WSDL files with the same TNS. 
> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Commented: (TUSCANY-2043) documentBaseURI is null when multiple wsdls in contribution with same namespace

2008-02-14 Thread Raymond Feng (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569001#action_12569001
 ] 

Raymond Feng commented on TUSCANY-2043:
---

In Tuscany, if there are multiple WSDLs under the same namespace, we return a 
facade WSDL4J Definition that use "wsdl:import" to import the physical WSDL 
definitions. 

1) You can navigate the imports of the facade WSDL definition to get the 
document URI of the physical WSDLs.

2) Maybe there is a way to find the physical WSDL defintion that actually 
contains the WSDL artifact. The current code resolve WSDLDefinition at the 
Definition level. The unresolved object type is not helpful unless it goes down 
to Service/Port/PortType/Binding level. We need to change the code to resolve 
interface.wsdl and wsdlElement at finer level.

Thanks,
Raymond

> documentBaseURI is null when multiple wsdls in contribution with same 
> namespace   
> --
>
> Key: TUSCANY-2043
> URL: https://issues.apache.org/jira/browse/TUSCANY-2043
> Project: Tuscany
>  Issue Type: Bug
>Reporter: Lou Amodeo
>Assignee: Simon Laws
> Fix For: Java-SCA-1.2
>
> Attachments: helloworld-ws-asynch.jar
>
>
> I have a case where there are 2 wsdl files in the contribution with the same 
> namespace.  After the WSDL resolution the 
> documentBaseURI attribute of the wsdl's  DefinitionImpl is null.  The is 
> normally completed in the WebServiceBindingProcessor.resolve().   In this 
> particular case there are 2 binding.ws elements in the contribution.  One for 
> the service and one for its  binding.   If I change the TNS of one 
> of the WSDL files then the documnetBaseURI is filled in during the 
> WebServiceBindingProcessor.resolve.   So it appears there is in issue in the 
> WSDL Model resolver when it finds multiple WSDL files with the same TNS. 
> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Commented: (TUSCANY-2043) documentBaseURI is null when multiple wsdls in contribution with same namespace

2008-02-14 Thread Simon Laws (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-2043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568837#action_12568837
 ] 

Simon Laws commented on TUSCANY-2043:
-

Hi

I took your WSDL files and made a sample. I see an effect just by running it 
that you don't mention

Caused by: org.apache.tuscany.sca.interfacedef.wsdl.impl.InvalidWSDLException: 
Element cannot be resolved: {http://helloworld/xsd}getGreetings
at 
org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLOperationIntrospectorImpl$WSDLPart.(WSDLOperationIntrospectorImpl.java:272)

This is during the resolution of the WSDL. I'm curious that the affect for you 
is just a null documentBaseURI rather than the error I see. It maybe that I set 
the test up slightly differently (Can you post the java source files also for 
comparison? I only see the class files in the attached jar)

Anyhow something is definitely going wrong with the way that the runtime tries 
to aggregate types found in the same namespace. Am debugging now so I'll post 
again when I know more. 

Simon

> documentBaseURI is null when multiple wsdls in contribution with same 
> namespace   
> --
>
> Key: TUSCANY-2043
> URL: https://issues.apache.org/jira/browse/TUSCANY-2043
> Project: Tuscany
>  Issue Type: Bug
>Reporter: Lou Amodeo
>Assignee: Simon Laws
> Fix For: Java-SCA-Next
>
> Attachments: helloworld-ws-asynch.jar
>
>
> I have a case where there are 2 wsdl files in the contribution with the same 
> namespace.  After the WSDL resolution the 
> documentBaseURI attribute of the wsdl's  DefinitionImpl is null.  The is 
> normally completed in the WebServiceBindingProcessor.resolve().   In this 
> particular case there are 2 binding.ws elements in the contribution.  One for 
> the service and one for its  binding.   If I change the TNS of one 
> of the WSDL files then the documnetBaseURI is filled in during the 
> WebServiceBindingProcessor.resolve.   So it appears there is in issue in the 
> WSDL Model resolver when it finds multiple WSDL files with the same TNS. 
> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]