[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-6497) [tester] wrong namespace is used in generated soap body for wsdl importing another wsdl

Brian Fitzpatrick (JIRA) jira-events at lists.jboss.org
Wed Jun 23 13:51:46 EDT 2010


    [ https://jira.jboss.org/browse/JBIDE-6497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12536827#action_12536827 ] 

Brian Fitzpatrick commented on JBIDE-6497:
------------------------------------------

>From Lukas:

In this case binding is defined in WSDL (tagetNamespace of this WSDL is
http://webservices.www.ecubicle.net/) as:
<binding xmlns:ns1="http://www.ecubicle.net/webservices"
name="GsearchRssSoapImplPortBinding" type="ns1:gsearch_rssSoap">

refers to port type defined in imported WSDL (tagetNamespace of this
WSDL is http://www.ecubicle.net/webservices) - gsearch_rssSoap from
"http://www.ecubicle.net/webservices" namespace which looks like:

<portType name="gsearch_rssSoap">
<operation name="GetSearchResults">
<input message="tns:GetSearchResults"/>
<output message="tns:GetSearchResultsResponse"/>
</operation>
</portType>

and from this definition the input message has to be of type
GetSearchResults from http://www.ecubicle.net/webservices namespace[*]
instead of current http://webservices.www.ecubicle.net/

[*] GetSearchResults type from http://www.ecubicle.net/webservices
namespace is defined in xsd imported from the second WSDL (the one
containing gsearch_rssSoap definition)


a side note:
it would be maybe good to include prefixed namespace definition instead
of anonymous one in generated SOAP message. I mean generate:
<ns1:GetSearchResults xmlns:ns1 =
"http://www.ecubicle.net/webservices"/> instead of <GetSearchResults
xmlns = "http://www.ecubicle.net/webservices"/>.
  The reason for this change is that it is pretty common that child
elements of the root element are usually from no namespace and if the
root element contains anonymous namespace definition the inheritance
rules will cause that child elements will be taken from that "anonymous"
namespace too, which is wrong, ...unless user tweak it.

> [tester] wrong namespace is used in generated soap body for wsdl importing another wsdl
> ---------------------------------------------------------------------------------------
>
>                 Key: JBIDE-6497
>                 URL: https://jira.jboss.org/browse/JBIDE-6497
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Webservices
>    Affects Versions: 3.2.0.M1
>            Reporter: Lukas Jungmann
>            Assignee: Brian Fitzpatrick
>             Fix For: 3.2.x
>
>         Attachments: jbide6497.zip, wsdls.zip
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> -deploy attached project containing ws from wsdl
> -open tester view
> -open "Get from WSDL..." dialog, fill in the WSDL URI, keep defaults and press ok
> -invoke the service
> => response says:
> Cannot find dispatch method for {http://webservices.www.ecubicle.net/}GetSearchResults
> problem is that generated SOAP request contains:
> <GetSearchResults xmlns = "http://webservices.www.ecubicle.net/">
> but it should contain:
> <GetSearchResults xmlns = "http://www.ecubicle.net/webservices">
> the cause of the problem seems to be the fact that target namespace in concrete WSDL is different from the one defined in imported/abstract WSDL

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list