Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with soapenc:string vs. xsd:string

 
Tom Conklin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Axis 1.2 and am trying to change my Strings in my WSDL from "soapenc:string" to "xsd:string" and am having no luck. I'm deploying my complex types with beanMapping. Is there attribute to beanMapping where I can specify "xsd:string" rather than "soapenc:string"?
 
Mark Petro
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was able to get around this problem under Axis 1.2RC3 by adding the following type mapping under the <service> element of my wsdd config file.

<typeMapping
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
qname="ns1:string"
serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
type="java:java.lang.String"
xmlns:ns1="http://www.w3.org/2001/XMLSchema"
/>

This may even work under the <globalConfiguration> element (and thus for all deployed services) but I haven't tried it yet.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic