[jbossws-issues] [JBoss JIRA] Commented: (JBWS-1712) Jboss can't find element with qualified name

Denis Kostousov (JIRA) jira-events at lists.jboss.org
Tue Jun 19 05:32:11 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBWS-1712?page=comments#action_12365995 ] 
            
Denis Kostousov commented on JBWS-1712:
---------------------------------------

Sorry, I tried to remove company name from wsdl and messages.

Correct messages and wsdl without any edit are posted lower.
WSDL
<definitions name='BrasUserManagerBeanService' targetNamespace='http://bean.brasws.telecom_m.com/' xmlns='http://schemas.xmlsoap.org/wsdl/'
             xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://bean.brasws.telecom_m.com/'
             xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
  <types></types>
  <message name='IBrasUserManager_setIP'>
    <part name='connID' type='xsd:string'></part>
    <part name='ip' type='xsd:string'></part>
  </message>
  <message name='IBrasUserManager_setServiceResponse'>
    <part name='return' type='xsd:boolean'></part>
  </message>
  <message name='IBrasUserManager_setIPResponse'>
    <part name='return' type='xsd:boolean'></part>
  </message>
  <message name='IBrasUserManager_setService'>
    <part name='connID' type='xsd:string'></part>
    <part name='service' type='xsd:string'></part>
  </message>
  <portType name='IBrasUserManager'>
    <operation name='setIP' parameterOrder='connID ip'>
      <input message='tns:IBrasUserManager_setIP'></input>
      <output message='tns:IBrasUserManager_setIPResponse'></output>
    </operation>
    <operation name='setService' parameterOrder='connID service'>
      <input message='tns:IBrasUserManager_setService'></input>
      <output message='tns:IBrasUserManager_setServiceResponse'></output>
    </operation>
  </portType>
  <binding name='IBrasUserManagerBinding' type='tns:IBrasUserManager'>
    <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
    <operation name='setIP'>
      <soap:operation soapAction=''/>
      <input>
        <soap:body namespace='http://bean.brasws.telecom_m.com/' use='literal'/>
      </input>
      <output>
        <soap:body namespace='http://bean.brasws.telecom_m.com/' use='literal'/>
      </output>
    </operation>
    <operation name='setService'>
      <soap:operation soapAction=''/>
      <input>
        <soap:body namespace='http://bean.brasws.telecom_m.com/' use='literal'/>
      </input>
      <output>
        <soap:body namespace='http://bean.brasws.telecom_m.com/' use='literal'/>
      </output>
    </operation>
  </binding>
  <service name='BrasUserManagerBeanService'>
    <port binding='tns:IBrasUserManagerBinding' name='BrasUserManagerBeanPort'>
      <soap:address location='http://s-makarov.telecom-m.com:8080/BrasUserManagerBeanService/BrasUserManagerBean'/>
    </port>
  </service>
</definitions>

Worked message
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <setIP xmlns="http://bean.brasws.telecom_m.com/">
      <connID xmlns="">a</connID>
      <ip xmlns="">b</ip>
    </setIP>
  </soapenv:Body>
</soapenv:Envelope>

Bad message
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope
 xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
 xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
 <SOAP-ENV:Body>
  <SOAPSDK4:setService xmlns:SOAPSDK4="http://bean.brasws.telecom_m.com/">
   <SOAPSDK4:connID>123456789</SOAPSDK4:connID>
   <SOAPSDK4:service>128</SOAPSDK4:service>
  </SOAPSDK4:setService>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

> Jboss can't find element with qualified name
> --------------------------------------------
>
>                 Key: JBWS-1712
>                 URL: http://jira.jboss.com/jira/browse/JBWS-1712
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: jbossws-1.2.1
>         Environment: JBoss-4.2.0 GA
> Java 1.5.0_11
> MS Soap toolkit 3.0
>            Reporter: Denis Kostousov
>         Attachments: BrasUserManagerBean.wsdl
>
>
> MS Soap client sends a message to JBossWS Server looks like
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <SOAP-ENV:Envelope
>  xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
>  xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
>  xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/"
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
>  <SOAP-ENV:Body>
>   <SOAPSDK4:setService xmlns:SOAPSDK4="http://bean.brasws.company.com/">
>    <SOAPSDK4:connID>123456789</SOAPSDK4:connID>
>    <SOAPSDK4:service>128</SOAPSDK4:service>
>   </SOAPSDK4:setService>
>  </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> but, JBossWS can't find element "connID"
> If some other client sends message
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>                   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>   <soapenv:Body>
>     <setIP xmlns="http://bean.brasws.company.com/">
>       <connID xmlns="">a</connID>
>       <ip xmlns="">b</ip>
>     </setIP>
>   </soapenv:Body>
> </soapenv:Envelope>
> JBoss successfully find the element.

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

        



More information about the jbossws-issues mailing list