This discussion is archived
1 Reply Latest reply: Feb 3, 2013 11:28 PM by 900061 RSS

How to elementFormdefault statement for unqualified

987816 Newbie
Currently Being Moderated
hello
We want to GWWS issued by tuxedeo service
Just like that custtypeapp example
When I perform after tmwsdlgen,wsdl is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap11="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tuxtype="urn:pack.Myword_typedef.salt11" xmlns:tns="urn:Myword.wsdl" xmlns:s3="http://www.example.org/myword" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="Myword" targetNamespace="urn:Myword.wsdl">
<wsdl:documentation>Generated at 01-29-2013 21:18:50:066</wsdl:documentation>
<wsdl:types>
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="urn:pack.Myword_typedef.salt11">
<xsd:import namespace="http://www.example.org/myword" schemaLocation="http://159.156.1.239:8011/xsd/Myword.xsd"></xsd:import>
<xsd:element name="MYWORD">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="inbuf">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="s3:Myword"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="MYWORDResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="outbuf">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="s3:Myword"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="MYWORDInput">
<wsdl:part element="tuxtype:MYWORD" name="XML"></wsdl:part>
</wsdl:message>
<wsdl:message name="MYWORDOutput">
<wsdl:part element="tuxtype:MYWORDResponse" name="XML"></wsdl:part>
</wsdl:message>
<wsdl:portType name="MYWORD_PortType">
<wsdl:operation name="MYWORD">
<wsdl:input message="tns:MYWORDInput"></wsdl:input>
<wsdl:output message="tns:MYWORDOutput"></wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="Myword_Binding" type="tns:MYWORD_PortType">
<soap11:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"></soap11:binding>
<wsdl:operation name="MYWORD">
<soap11:operation soapAction="MYWORD" style="document"></soap11:operation>
<wsdl:input>
<soap11:body use="literal"></soap11:body>
</wsdl:input>
<wsdl:output>
<soap11:body use="literal"></soap11:body>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TuxedoWebService">
<wsdl:port binding="tns:Myword_Binding" name="Myword_GWWS1_HTTPPort">
<soap11:address location="http://159.156.1.239:8011/Myword"></soap11:address>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
The problem is : 1、how do i change ' elementFormDefault="qualified" ' to ' elementFormDefault="unqualified" '
2、how can i customize '<xsd:element name="MYWORD">' is '<xsd:element name="MYWORDRES">'
3、'<xsd:import namespace="http://www.example.org/myword" schemaLocation="http://159.156.1.239:8011/xsd/Myword.xsd";></xsd:import> '
How to let the xsd use Myword namespace
4、How to contain a others no namespace XSD
I am a rookie for salt
Ask for help thank you
  • 1. Re: How to elementFormdefault statement for unqualified
    900061 Newbie
    Currently Being Moderated
    # 1、Not Support this yet.
    # 2、modify the service name to MYWORDRES in the mif file:
    service=MYWORDRES
    tuxservice=MYWORD
    export=y
    servicetype=service
    #3、I dont' understand the question, It has used the Mywork.XSD

    #4、set the following ENV to add the xsd file, But since #1 not support, no namespace xsd can not used here:
    XSDDIR=@APPDIR@/xsd
    XSDFILES=your.xsd

    Edited by: user939026 on 2013-2-3 下午11:26

    Edited by: user939026 on 2013-2-3 下午11:27

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points