[ 
https://issues.apache.org/jira/browse/AXIS2-4439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734953#action_12734953
 ] 

Anthony Seniunas commented on AXIS2-4439:
-----------------------------------------

Hi Andreas, sorry I was part way through analysing the problem.  Last night I 
stepped through the code and was surprised to find the exception was'nt 
occurring with the first request/response pair above but the second 
request/response pair.

The following is the stack trace:-

GetDocumentList failedgetDocumentList: GetDocumentList Web service call 
failed:In valid string sufix
com.kirona.uniform.webservices.exceptions.EnvhealthRuntimeException: 
getDocumentList: GetDocumentList Web service call failed:In valid string sufix
        at 
com.kirona.uniform.webservices.client.impl.EnvhealthInterfaceImpl.getDocumentList(EnvhealthInterfaceImpl.java:393)
        at 
com.kirona.uniform.webservices.client.impl.EnvhealthInterfaceImpl.main(EnvhealthInterfaceImpl.java:642)
Caused by: 
com.kirona.uniform.webservices.exceptions.EnvhealthRemotingException: 
GetDocumentList Web service call failed:In valid string sufix
        at 
com.kirona.uniform.webservices.client.impl.EnvhealthInterfaceImpl.GetDocumentList(EnvhealthInterfaceImpl.java:411)
        at 
com.kirona.uniform.webservices.client.impl.EnvhealthInterfaceImpl.getDocumentList(EnvhealthInterfaceImpl.java:383)
        ... 1 more
Caused by: org.apache.axis2.AxisFault: In valid string sufix
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at 
com.kirona.uniform.webservices.client.EnvhealthStub.fromOM(EnvhealthStub.java:1719)
        at 
com.kirona.uniform.webservices.client.EnvhealthStub.getDocumentList(EnvhealthStub.java:749)
        at 
com.kirona.uniform.webservices.client.impl.EnvhealthInterfaceImpl.GetDocumentList(EnvhealthInterfaceImpl.java:406)
        ... 2 more
Caused by: java.lang.RuntimeException: In valid string sufix
        at 
org.apache.axis2.databinding.utils.ConverterUtil.convertToDate(ConverterUtil.java:603)
        at 
com.kirona.uniform.model.DocIndexDetailsType$Factory.parse(DocIndexDetailsType.java:1016)
        at com.kirona.uniform.model.DocType$Factory.parse(DocType.java:642)
        at 
com.kirona.uniform.model.DocumentData$Factory.parse(DocumentData.java:732)
        at 
com.kirona.uniform.model.GetDocumentListResponse$Factory.parse(GetDocumentListResponse.java:419)
        at 
com.kirona.uniform.webservices.client.EnvhealthStub.fromOM(EnvhealthStub.java:1671)
        ... 4 more
Process exited with exit code 0.

The request is:-

POST 
http://www.test.testplc.com:80/dmsinterface/services/dms/interface/kirona/envhealth
 HTTP/1.1
Content-Type: text/xml; charset=UTF-8
Cookie: JSESSIONID=7B1AFB1714152970AFBD08480E444785; Path=/dmsinterface
SOAPAction: 
"http://www.testplc.com/ws/services/dms/interface/kirona/envhealth/GetDocumentList";
User-Agent: Axis2
Host: www.test.idoxplc.com
Proxy-Connection: Keep-Alive
Content-Length: 324

<?xml version = '1.0' encoding = 'UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
   <soapenv:Body>
      <ns1:GetDocumentList 
xmlns:ns1="http://www.testplc.com/ws/services/dms/interface/kirona/envhealth/";>
         <ns1:Address>1 Test Street</ns1:Address>
      </ns1:GetDocumentList>
   </soapenv:Body>
</soapenv:Envelope>

The following is the response:-

<?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>
      <call:GetDocumentListResponse 
xmlns:call="http://www.testplc.com/ws/services/dms/interface/kirona/envhealth/";>
         <call:DocumentData>
            <Doc>
               <Result>SUCCESS</Result>
               <DocIndexDetails>
                  <CaseRef>11111111</CaseRef>
                  <Category>Environmental Health</Category>
                  <CreatedBy>UFWEB USER</CreatedBy>
                  <DateCreated>2009-06-10 00:00:00.0</DateCreated>
                  <Description>TEST FORM</Description>
                  <DocType>Letter</DocType>
                  <Section>Environmental Services</Section>
                  <Sensitivity>Public</Sensitivity>
               </DocIndexDetails>
               <DocSystemDetails>
                  <DocDisplayURL>RESERVED</DocDisplayURL>
                  
<DocRetrieveURL>http://TESTDMS38N39CH:8080/IDOXSoftware/IG_remote_display?docid=21960&amp;ext=txt&amp;version=1</DocRetrieveURL>
                  <ExternalDocId>72:21960:11111111</ExternalDocId>
                  <MimeType>text/plain</MimeType>
                  <Pages>1</Pages>
                  <Version>1</Version>
               </DocSystemDetails>
            </Doc>
            <Doc>
               <Result>SUCCESS</Result>
               <DocIndexDetails>
                  <CaseRef>87686867</CaseRef>
                  <Category>Environmental Health</Category>
                  <CreatedBy>UFWEB USER</CreatedBy>
                  <DateCreated>2009-06-12 00:00:00.0</DateCreated>
                  <Description>TEST FORM</Description>
                  <DocType>Application</DocType>
                  <Section>Environmental Services</Section>
                  <Sensitivity>Public</Sensitivity>
               </DocIndexDetails>
               <DocSystemDetails>
                  <DocDisplayURL>RESERVED</DocDisplayURL>
                  
<DocRetrieveURL>http://TESTDMS38N39CH:8080/IDOXSoftware/IG_remote_display?docid=21981&amp;ext=txt&amp;version=1</DocRetrieveURL>
                  <ExternalDocId>72:21981:87686867</ExternalDocId>
                  <MimeType>text/plain</MimeType>
                  <Pages>1</Pages>
                  <Version>1</Version>
               </DocSystemDetails>
            </Doc>
            <Doc>
               <Result>SUCCESS</Result>
               <DocIndexDetails>
                  <CaseRef>11111111</CaseRef>
                  <Category>Environmental Health</Category>
                  <CreatedBy>UFWEB USER</CreatedBy>
                  <DateCreated>2009-06-24 00:00:00.0</DateCreated>
                  <Description>TEST FORM</Description>
                  <DocType>Application</DocType>
                  <Section>Environmental Services</Section>
                  <Sensitivity>Public</Sensitivity>
               </DocIndexDetails>
               <DocSystemDetails>
                  <DocDisplayURL>RESERVED</DocDisplayURL>
                  
<DocRetrieveURL>http://TESTDMS38N39CH:8080/IDOXSoftware/IG_remote_display?docid=22003&amp;ext=txt&amp;version=1</DocRetrieveURL>
                  <ExternalDocId>72:22003:11111111</ExternalDocId>
                  <MimeType>text/plain</MimeType>
                  <Pages>1</Pages>
                  <Version>1</Version>
               </DocSystemDetails>
            </Doc>
            <Doc>
               <Result>SUCCESS</Result>
               <DocIndexDetails>
                  <CaseRef>11111111</CaseRef>
                  <Category>Environmental Health</Category>
                  <CreatedBy>UFWEB USER</CreatedBy>
                  <DateCreated>2009-06-24 00:00:00.0</DateCreated>
                  <Description>TEST FORM</Description>
                  <DocType>Application</DocType>
                  <Section>Environmental Services</Section>
                  <Sensitivity>Public</Sensitivity>
               </DocIndexDetails>
               <DocSystemDetails>
                  <DocDisplayURL>RESERVED</DocDisplayURL>
                  
<DocRetrieveURL>http://TESTDMS38N39CH:8080/IDOXSoftware/IG_remote_display?docid=22005&amp;ext=txt&amp;version=1</DocRetrieveURL>
                  <ExternalDocId>72:22005:11111111</ExternalDocId>
                  <MimeType>text/plain</MimeType>
                  <Pages>1</Pages>
                  <Version>1</Version>
               </DocSystemDetails>
            </Doc>
            <Doc>
               <Result>SUCCESS</Result>
               <DocIndexDetails>
                  <CaseRef>11111111</CaseRef>
                  <Category>Environmental Health</Category>
                  <CreatedBy>UFWEB USER</CreatedBy>
                  <DateCreated>2009-07-02 00:00:00.0</DateCreated>
                  <Description>TEST FORM</Description>
                  <DocType>Application</DocType>
                  <Section>Environmental Services</Section>
                  <Sensitivity>Public</Sensitivity>
               </DocIndexDetails>
               <DocSystemDetails>
                  <DocDisplayURL>RESERVED</DocDisplayURL>
                  
<DocRetrieveURL>http://TESTDMS38N39CH:8080/IDOXSoftware/IG_remote_display?docid=22021&amp;ext=txt&amp;version=1</DocRetrieveURL>
                  <ExternalDocId>72:22021:11111111</ExternalDocId>
                  <MimeType>text/plain</MimeType>
                  <Pages>1</Pages>
                  <Version>1</Version>
               </DocSystemDetails>
            </Doc>
            <Doc>
               <Result>SUCCESS</Result>
               <DocIndexDetails>
                  <CaseRef>99999999</CaseRef>
                  <Category>Environmental Health</Category>
                  <CreatedBy>UFWEB USER</CreatedBy>
                  <DateCreated>2009-07-15 00:00:00.0</DateCreated>
                  <Description>TEST FORM</Description>
                  <DocType>Application</DocType>
                  <Section>Environmental Services</Section>
                  <Sensitivity>Public</Sensitivity>
               </DocIndexDetails>
               <DocSystemDetails>
                  <DocDisplayURL>RESERVED</DocDisplayURL>
                  
<DocRetrieveURL>http://TESTDMS38N39CH:8080/IDOXSoftware/IG_remote_display?docid=22056&amp;ext=txt&amp;version=1</DocRetrieveURL>
                  <ExternalDocId>72:22056:99999999</ExternalDocId>
                  <MimeType>text/plain</MimeType>
                  <Pages>1</Pages>
                  <Version>1</Version>
               </DocSystemDetails>
            </Doc>
            <Doc>
               <Result>SUCCESS</Result>
               <DocIndexDetails>
                  <CaseRef>IVA REF</CaseRef>
                  <Category>Environmental Health</Category>
                  <CreatedBy>UFWEB USER</CreatedBy>
                  <DateCreated>2009-07-20 00:00:00.0</DateCreated>
                  <Description>KIRONA TEST DOCUMENT</Description>
                  <DocType>Letter</DocType>
                  <Section>Environmental Services</Section>
                  <Sensitivity>Public</Sensitivity>
               </DocIndexDetails>
               <DocSystemDetails>
                  <DocDisplayURL>RESERVED</DocDisplayURL>
                  
<DocRetrieveURL>http://TESTDMS38N39CH:8080/IDOXSoftware/IG_remote_display?docid=22066&amp;ext=txt&amp;version=1</DocRetrieveURL>
                  <ExternalDocId>72:22066:IVA REF</ExternalDocId>
                  <MimeType>text/plain</MimeType>
                  <Pages>1</Pages>
                  <Version>1</Version>
               </DocSystemDetails>
            </Doc>
            <Doc>
               <Result>SUCCESS</Result>
               <DocIndexDetails>
                  <CaseRef>IVA REF</CaseRef>
                  <Category>Environmental Health</Category>
                  <CreatedBy>UFWEB USER</CreatedBy>
                  <DateCreated>2009-07-23 00:00:00.0</DateCreated>
                  <Description>KIRONA TEST IMAGE</Description>
                  <DocType>Letter</DocType>
                  <Section>Environmental Services</Section>
                  <Sensitivity>Public</Sensitivity>
               </DocIndexDetails>
               <DocSystemDetails>
                  <DocDisplayURL>RESERVED</DocDisplayURL>
                  
<DocRetrieveURL>http://TESTDMS38N39CH:8080/IDOXSoftware/IG_remote_display?docid=22109&amp;ext=jpg&amp;version=1</DocRetrieveURL>
                  <ExternalDocId>72:22109:IVA REF</ExternalDocId>
                  <MimeType>image/jpeg</MimeType>
                  <Pages>1</Pages>
                  <Version>1</Version>
               </DocSystemDetails>
            </Doc>
            <Doc>
               <Result>SUCCESS</Result>
               <DocIndexDetails>
                  <CaseRef>33333333</CaseRef>
                  <Category>Environmental Health</Category>
                  <CreatedBy>DOUG DANIEL</CreatedBy>
                  <DateCreated>2009-07-23 00:00:00.0</DateCreated>
                  <Description>TEST FORM</Description>
                  <DocType>Application</DocType>
                  <Section>Environmental Services</Section>
                  <Sensitivity>Public</Sensitivity>
               </DocIndexDetails>
               <DocSystemDetails>
                  <DocDisplayURL>RESERVED</DocDisplayURL>
                  
<DocRetrieveURL>http://TESTDMS38N39CH:8080/IDOXSoftware/IG_remote_display?docid=22110&amp;ext=txt&amp;version=1</DocRetrieveURL>
                  <ExternalDocId>72:22110:33333333</ExternalDocId>
                  <MimeType>text/plain</MimeType>
                  <Pages>1</Pages>
                  <Version>1</Version>
               </DocSystemDetails>
            </Doc>
            <OriginalMessage>
               <ns1:GetDocumentList 
xmlns:ns1="http://www.idoxplc.com/ws/services/dms/interface/kirona/envhealth/";>
                  <ns1:Address>1 Test Street</ns1:Address>
               </ns1:GetDocumentList>
            </OriginalMessage>
         </call:DocumentData>
      </call:GetDocumentListResponse>
   </soapenv:Body>
</soapenv:Envelope>

Looking at the stack trace , is the problem with DateCreated?

The .wsdl fragment for DocIndexDetails is:-

            <xsd:complexType name="DocIndexDetailsType">
                <xsd:sequence>
                    <xsd:element name="CaseRef" type="xsd:string" 
form="unqualified"/>
                    <xsd:element name="Category" type="xsd:string" 
form="unqualified"/> 
                    <xsd:element name="CreatedBy" type="xsd:string" 
form="unqualified"/>        
        <xsd:element name="DateCreated" type="xsd:date" form="unqualified"/>    
                    <xsd:element name="Description" type="xsd:string" 
form="unqualified"/>
                    <xsd:element name="DocType" type="xsd:string" 
form="unqualified"/>                                  
                    <xsd:element name="Section" type="xsd:string" 
form="unqualified"/>
                    <xsd:element name="Sensitivity" type="xsd:string" 
form="unqualified"/>
                </xsd:sequence>
            </xsd:complexType>


> ADBException: Any type element type has not been given
> ------------------------------------------------------
>
>                 Key: AXIS2-4439
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4439
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: 1.5
>         Environment: Windows XP Desktop computer
>            Reporter: Anthony Seniunas
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>   Original Estimate: 0.33h
>  Remaining Estimate: 0.33h
>
> I've developed a web client  using wsdl2java and I'm getting the following 
> exception when obtaining a response from a web service.
> org.apache.axis2.databinding.ADBException: Any type element type has not been 
> given 
> The .wsdl fragment relating to this is:-
>             <xsd:complexType name="DocumentData">
>                 <xsd:sequence>
>                     <xsd:element name="Doc" type="schema:DocType" 
> form="unqualified" minOccurs="0"
>                         maxOccurs="unbounded"/>
>                     <xsd:element name="Result" type="xsd:string" 
> form="unqualified" minOccurs="0"/>
>                     <xsd:element name="SessionId" type="xsd:string" 
> form="unqualified" minOccurs="0"/>
>                     <xsd:element name="OriginalMessage" type="xsd:anyType" 
> form="unqualified" minOccurs="0"/>
>                 </xsd:sequence>
>             </xsd:complexType>
> Note the originalMessage element type - anyType.
> The following is a typical response SOAP message causing the exception:-
> <?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>
>       <call:LoginResponse 
> xmlns:call="http://www.testplc.com/ws/services/dms/interface/kirona/envhealth/";>
>          <call:DocumentData>
>             <Result>SUCCESS</Result>
>             <SessionId>D83D8A42672F08AA6EC9377CB32F6317</SessionId>
>             <OriginalMessage>
>                <ns1:Login 
> xmlns:ns1="http://www.testplc.com/ws/services/dms/interface/kirona/envhealth/";>
>                   
> <ns1:Authorisation>Y29yb25hdXNlcjpjMHIwbjR1czNy</ns1:Authorisation>
>                </ns1:Login>
>             </OriginalMessage>
>          </call:DocumentData>
>       </call:LoginResponse>
>    </soapenv:Body>
> </soapenv:Envelope>
> Its unusual but the web service returns the original message hence the usage 
> of anyType.
> I've come across many articles on problems with anyType and its possible this 
> problem has already been fixed so please can you advise?.

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

Reply via email to