Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-548

Normalized string value returned

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • jbossws-1.0RC2
    • None
    • jbossws-native
    • None

      tdiesler@TDDELL /cygdrive/d/projects/jboss-head/testsuite
      $ ant -Dtest=org.jboss.test.webservice.jbws425.JBWS425TestCase one-test

      one-test:
      [junit] Running org.jboss.test.webservice.jbws425.JBWS425TestCase
      [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 3.578 sec
      [junit] Test org.jboss.test.webservice.jbws425.JBWS425TestCase FAILED

      The message returned from the server is

      <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
      <env:Header/>
      <env:Body>
      <ns1:helloResponse xmlns:ns1='http://org.jboss.test.webservice/jbws425'>
      <result>"urn:some-soap-action"</result>
      </ns1:helloResponse>
      </env:Body>
      </env:Envelope>

      The test fails with

      Testcase: testClientAccess took 1.563 sec
      FAILED
      expected:<"urn:some-soap-action"> but was:<"urn:some-soap-action">
      junit.framework.ComparisonFailure: expected:<"urn:some-soap-action"> but was:<"urn:some-soap-action">
      at org.jboss.test.webservice.jbws425.JBWS425TestCase.testClientAccess(JBWS425TestCase.java:78)

      2005-12-12 12:37:33,562 DEBUG [org.jboss.ws.soap.SOAPContentElement:191] xmlFragment: <result>"urn:some-soap-action"</result>
      2005-12-12 12:37:33,562 DEBUG [org.jboss.ws.jaxrpc.encoding.SimpleDeserializer:45] deserialize: [xmlName=result,xmlType=

      {http://www.w3.org/2001/XMLSchema}

      string]
      2005-12-12 12:37:33,562 DEBUG [org.jboss.ws.soap.SOAPContentElement:260] objectValue: java.lang.String

      IMHO, the string value returned from SimpleTypeBindings.unmarshal is incorrect.

              jgreene@redhat.com Jason Greene
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: