Campana Jr., Salvatore J wrote:

The ugly class names you refer to are XmlBean-internals...Its not mean
for you, its for them....Thats part of the reason we generate a jar....

All your classes' packages are based on the namespace pf your wsdl...as
are the generated XmlBeans (except for things they don't expect you to
mess with)...

In short, this is done by XmlBeans...not us...
by using ,xsdconfig file you can map namespaces to package name of your choosing (this is described in XmlBeans documentation) - that should work at least in theory ....

best,

alek

-----Original Message-----
From: Wolfgang Schreiner [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 1:47 PM
To: wsrf-user@ws.apache.org
Subject: Re: wsdl2java

thanx very much for your support!
well, that's what i didn't take care of ... now i got rid of multiple
methods but i still get those ugly package names:

public static final org.apache.xmlbeans.SchemaType type =
(org.apache.xmlbeans.SchemaType)schemaorg_apache_xmlbeans.system.sB1E943
80FFBC6C791A4A2862E0470F74.TypeSystemHolder.typeSystem.resolveHandle("re
sourceproperties3cc2doctype");

in the generated xml-beans
does this also happen due to modified namespaces (putting aside the fact
that they are just pointing to http-urls instead to the local file
system)? this is strange, since i do not see any major differences ...



Campana Jr., Salvatore J wrote:

Wolfgang,

This was something we had seen in the past, and thought we fixed....We hadn't...

Okay so I added a check and better logging in the top of tree...We plan

to cut releases later today, so this will be in the upcoming release...

Basically for right now the problem you are seeing is due to an invalid

WSDL import. You've modified our template quite a bit (namespace changes throughout)....But the thing which broke this for you was the import at the top for WS-MetadataExchange....You've changed the location to point to something on the web, but its not the WSDL..its the schema you've pointed to....Change the location URL to point to the

wsdl and all will be fine...

Again we'll catch this in the upcoming release and let you know....

Thanks!!

-Sal

-----Original Message-----
From: Wolfgang Schreiner [mailto:[EMAIL PROTECTED]
Sent: Friday, October 21, 2005 10:33 AM
To: wsrf-user@ws.apache.org
Subject: Re: wsdl2java

i put the interface followed by the wsdl below actually, i used the build.xml of the wsrf package, the only thing i did, was to modify the template wsdl.
regards


package at.ac.univie.par.gemss.service.convert;

/**
* An interface containing all custom operations from the MedicalImageConverterPort service's
* most-derived portType.
* <p />
* ***** WARNING *****
* This class is generated by Wsdl2Java and is NOT meant to be
modified.
* It will be overwritten by subsequent runs of Wsdl2Java.
*/
public interface MedicalImageConverterPortCustomOperationsPortType
{

    public at.ac.univie.par.gemss.service.convert.DICOMFileDocument
convertAnalyze2DICOM(
at.ac.univie.par.gemss.service.convert.AnalyzeFileDocument requestDoc )

throws at.ac.univie.par.gemss.service.convert.ConversionFaultException
; public at.ac.univie.par.gemss.service.convert.DICOMFileDocument
convertAnalyze2DICOM(
at.ac.univie.par.gemss.service.convert.AnalyzeFileDocument requestDoc )

throws at.ac.univie.par.gemss.service.convert.ConversionFaultException
; public at.ac.univie.par.gemss.service.convert.AnalyzeFileDocument
convertDICOM2Analyze(
at.ac.univie.par.gemss.service.convert.DICOMFileDocument requestDoc ) throws at.ac.univie.par.gemss.service.convert.ConversionFaultException ;
}





<?xml version="1.0"?>

<definitions name="MedicalImageConverterDefinition"
  targetNamespace="http://gemss.par.univie.ac.at/service/convert";
  xmlns="http://schemas.xmlsoap.org/wsdl/";
  xmlns:tns="http://gemss.par.univie.ac.at/service/convert";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsrp="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourcePro
p
erties-1.2-draft-01.xsd"
xmlns:wsrpw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourcePr
o
perties-1.2-draft-01.wsdl"
xmlns:wsrlw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLi
f
etime-1.2-draft-01.wsdl"
  xmlns:mex="http://schemas.xmlsoap.org/ws/2004/09/mex";
  xmlns:wsa04="http://schemas.xmlsoap.org/ws/2004/08/addressing";>

  <import
namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProp
e
rties-1.2-draft-01.wsdl"
location="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourcePrope
r
ties-1.2-draft-01.wsdl"
/>

  <import
namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLife
t
ime-1.2-draft-01.wsdl"
location="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifet
i
me-1.2-draft-01.wsdl"
/>

  <import namespace="http://schemas.xmlsoap.org/ws/2004/09/mex";
      location="http://schemas.xmlsoap.org/ws/2004/09/mex"; />

  <types>
      <schema elementFormDefault="qualified"

targetNamespace="http://gemss.par.univie.ac.at/service/convert";
          xmlns="http://www.w3.org/2001/XMLSchema";
          xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLif
e
time-1.2-draft-01.xsd"
xmlns:wsbf="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-
1
.2-draft-01.xsd">

          <xsd:import
namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1
.
2-draft-01.xsd"
schemaLocation="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFau
l
ts-1.2-draft-01.xsd"
/>

          <xsd:import
namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLife
t
ime-1.2-draft-01.xsd"
schemaLocation="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-Resourc
e
Lifetime-1.2-draft-01.xsd"
/>

<!-- *** Add your custom resource property element definitions here *** -->

          <!-- Resource Properties Document Schema -->
          <element name="MedicalImageConverterResourceProperties">
              <complexType>
                  <sequence>

<!-- *** If you wish to implement the wsrl:ScheduledResourceTermination portType,
                          uncomment the below two lines *** -->
                          <element ref="wsrl:CurrentTime" />
                          <element ref="wsrl:TerminationTime" />
<!-- *** Add element refs for each of your custom resource property elements here *** -->

                      <!-- *** Uncomment the below any element if you

want to permit resource property elements
                          with arbitrary names (not generally
recommended) *** -->
                      <!--
                          <any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax" />
                      -->

                  </sequence>
              </complexType>
          </element>

<!-- *** Add element definitions for custom request/response/fault types here *** -->
          <element name="DICOMFile">
              <complexType>
                  <xsd:sequence>
                      <xsd:element type="base64Binary"
name="fileData"
/>
                  </xsd:sequence>
              </complexType>
          </element>

          <element name="AnalyzeFile">
              <complexType>
                  <xsd:sequence>
                      <xsd:element type="base64Binary" name="hdrData"
/>
                      <xsd:element type="base64Binary" name="imgData"
/>
                  </xsd:sequence>
              </complexType>
          </element>

          <element name="ConversionFault">
              <complexType>
                  <complexContent>
                      <extension base="wsbf:BaseFaultType" />
                  </complexContent>
              </complexType>
          </element>

      </schema>
  </types>
<!-- *** Add message definitions for custom request/response/fault types here *** --> <!-- ============= Message Definitions for Custom Operations ============= -->
  <message name="Analyze2DICOMRequest">
      <part name="Analyze2DICOMRequest" element="tns:AnalyzeFile"/>
  </message>

  <message name="Analyze2DICOMResponse">
      <part name="Analyze2DICOMResponse" element="tns:DICOMFile"/>
  </message>

  <message name="DICOM2AnalyzeRequest">
      <part name="DICOM2AnalyzeRequest" element="tns:DICOMFile"/>
  </message>

  <message name="DICOM2AnalyzeResponse">
      <part name="DICOM2AnalyzeResponse" element="tns:AnalyzeFile"/>
  </message>

  <message name="ConversionFault">
      <part name="ConversionFault" element="tns:ConversionFault"/>
  </message>




  <portType name="MedicalImageConverterPortType"
wsrp:ResourceProperties="tns:MedicalImageConverterResourceProperties">

      <operation name="GetResourceProperty">
          <input name="GetResourcePropertyRequest"
              message="wsrpw:GetResourcePropertyRequest" />
          <output name="GetResourcePropertyResponse"
              message="wsrpw:GetResourcePropertyResponse" />
          <fault name="ResourceUnknownFault"
              message="wsrpw:ResourceUnknownFault" />
          <fault name="InvalidResourcePropertyQNameFault"
              message="wsrpw:InvalidResourcePropertyQNameFault" />
      </operation>

<!-- *** If you wish to implement the WSRP GetMultipleResourceProperties portType,
          uncomment the below operation block *** -->
      <operation name="GetMultipleResourceProperties">
          <input name="GetMultipleResourcePropertiesRequest"
              message="wsrpw:GetMultipleResourcePropertiesRequest" />
          <output name="GetMultipleResourcePropertiesResponse"
              message="wsrpw:GetMultipleResourcePropertiesResponse"
/>
          <fault name="ResourceUnknownFault"
              message="wsrpw:ResourceUnknownFault" />
          <fault name="InvalidResourcePropertyQNameFault"
              message="wsrpw:InvalidResourcePropertyQNameFault" />
      </operation>

<!-- *** If you wish to implement the WSRP SetResourceProperties portType,
          uncomment the below operation block *** -->
      <operation name="SetResourceProperties">
          <input name="SetResourcePropertiesRequest"
              message="wsrpw:SetResourcePropertiesRequest" />
          <output name="SetResourcePropertiesResponse"
              message="wsrpw:SetResourcePropertiesResponse" />
          <fault name="ResourceUnknownFault"
              message="wsrpw:ResourceUnknownFault" />
          <fault name="InvalidResourcePropertyQNameFault"
              message="wsrpw:InvalidResourcePropertyQNameFault" />
          <fault
              name="InvalidSetResourcePropertiesRequestContentFault"
message="wsrpw:InvalidSetResourcePropertiesRequestContentFault" />
          <fault name="UnableToModifyResourcePropertyFault"
              message="wsrpw:UnableToModifyResourcePropertyFault" />
          <fault name="SetResourcePropertyRequestFailedFault"
              message="wsrpw:SetResourcePropertyRequestFailedFault"
/>
      </operation>

<!-- *** If you wish to implement the WSRP QueryResourceProperties portType,
          uncomment the below operation block *** -->
      <operation name="QueryResourceProperties">
          <input name="QueryResourcePropertiesRequest"
              message="wsrpw:QueryResourcePropertiesRequest" />
          <output name="QueryResourcePropertiesResponse"
              message="wsrpw:QueryResourcePropertiesResponse" />
          <fault name="ResourceUnknownFault"
              message="wsrpw:ResourceUnknownFault" />
          <fault name="InvalidResourcePropertyQNameFault"
              message="wsrpw:InvalidResourcePropertyQNameFault" />
          <fault name="UnknownQueryExpressionDialectFault"
              message="wsrpw:UnknownQueryExpressionDialectFault" />
          <fault name="InvalidQueryExpressionFault"
              message="wsrpw:InvalidQueryExpressionFault" />
          <fault name="QueryEvaluationErrorFault"
              message="wsrpw:QueryEvaluationErrorFault" />
      </operation>

<!-- *** If you wish to implement the WSRL ImmediateResourceTermination portType,
          uncomment the below operation block *** -->
      <operation name="Destroy">
          <input message="wsrlw:DestroyRequest" />
          <output message="wsrlw:DestroyResponse" />
          <fault name="ResourceUnknownFault"
              message="wsrlw:ResourceUnknownFault" />
          <fault name="ResourceNotDestroyedFault"
              message="wsrlw:ResourceNotDestroyedFault" />
      </operation>

<!-- *** If you wish to implement the WSRL ScheduledResourceTermination portType,
          uncomment the below operation block *** -->
      <operation name="SetTerminationTime">
          <input message="wsrlw:SetTerminationTimeRequest" />
          <output message="wsrlw:SetTerminationTimeResponse" />
          <fault name="ResourceUnknownFault"
              message="wsrlw:ResourceUnknownFault" />
          <fault name="UnableToSetTerminationTimeFault"
              message="wsrlw:UnableToSetTerminationTimeFault" />
          <fault name="TerminationTimeChangeRejectedFault"
              message="wsrlw:TerminationTimeChangeRejectedFault" />
      </operation>

<!-- *** If you wish to implement the WS-MetadataExchange MetadataExchange portType,
          uncomment the below operation block *** -->
      <operation name="GetMetadata">
          <input message="mex:GetMetadataMsg"
wsa04:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata/Req
u
est"
/>
          <output message="mex:GetMetadataResponseMsg"
wsa04:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata/Res
p
onse"
/>
      </operation>
      <operation name="Get">
          <input message="mex:GetMsg"
wsa04:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/Get/Request"; />
          <output message="mex:GetResponseMsg"
wsa04:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/Get/Response";
/>
      </operation>

      <!-- *** Add operation blocks for custom operations here ***
-->
      <operation name="convertAnalyze2DICOM">
          <input name="Analyze2DICOMRequest"
              message="tns:Analyze2DICOMRequest" />
          <output name="Analyze2DICOMResponse"
              message="tns:Analyze2DICOMResponse" />
          <fault name="ConversionFault" message="tns:ConversionFault"
/>
      </operation>

      <operation name="convertDICOM2Analyze">
          <input name="DICOM2AnalyzeRequest"
              message="tns:DICOM2AnalyzeRequest" />
          <output name="DICOM2AnalyzeResponse"
              message="tns:DICOM2AnalyzeResponse" />
          <fault name="ConversionFault" message="tns:ConversionFault"
/>
      </operation>

  </portType>

  <binding name="MedicalImageConverterSoapHttpBinding"
type="tns:MedicalImageConverterPortType">

      <soap:binding style="document"
          transport="http://schemas.xmlsoap.org/soap/http"; />

      <operation name="GetResourceProperty">
          <soap:operation style="document" />
          <input>
              <soap:body use="literal" />
          </input>
          <output>
              <soap:body use="literal" />
          </output>
          <fault name="ResourceUnknownFault">
              <soap:fault name="ResourceUnknownFault" use="literal"
/>
          </fault>
          <fault name="InvalidResourcePropertyQNameFault">
              <soap:fault name="InvalidResourcePropertyQNameFault"
                  use="literal" />
          </fault>
      </operation>

<!-- *** If you wish to implement the WSRP GetMultipleResourceProperties portType,
          uncomment the below operation block *** -->
          <operation name="GetMultipleResourceProperties">
          <soap:operation style="document"/>
          <input>
          <soap:body use="literal"/>
          </input>
          <output>
          <soap:body use="literal"/>
          </output>
          <fault name="ResourceUnknownFault">
          <soap:fault name="ResourceUnknownFault" use="literal"/>
          </fault>
          <fault name="InvalidResourcePropertyQNameFault">
          <soap:fault name="InvalidResourcePropertyQNameFault"
use="literal"/>
          </fault>
          </operation>
<!-- *** If you wish to implement the WSRP SetResourceProperties portType,
          uncomment the below operation block *** -->
          <operation name="SetResourceProperties">
          <soap:operation style="document"/>
          <input>
          <soap:body use="literal"/>
          </input>
          <output>
          <soap:body use="literal"/>
          </output>
          <fault name="ResourceUnknownFault">
          <soap:fault name="ResourceUnknownFault" use="literal"/>
          </fault>
          <fault name="InvalidResourcePropertyQNameFault">
          <soap:fault name="InvalidResourcePropertyQNameFault"
use="literal"/>
          </fault>
          <fault name="UnableToModifyResourcePropertyFault">
          <soap:fault name="UnableToModifyResourcePropertyFault"
use="literal"/>
          </fault>
          <fault
name="InvalidSetResourcePropertiesRequestContentFault">
          <soap:fault
name="InvalidSetResourcePropertiesRequestContentFault" use="literal"/>
          </fault>
          <fault name="SetResourcePropertyRequestFailedFault">
          <soap:fault name="SetResourcePropertyRequestFailedFault"
use="literal"/>
          </fault>
          </operation>
<!-- *** If you wish to implement the WSRP QueryResourceProperties portType,
          uncomment the below operation block *** -->
          <operation name="QueryResourceProperties">
          <soap:operation style="document"/>
          <input>
          <soap:body use="literal"/>
          </input>
          <output>
          <soap:body use="literal"/>
          </output>
          <fault name="ResourceUnknownFault">
          <soap:fault name="ResourceUnknownFault" use="literal"/>
          </fault>
          <fault name="InvalidResourcePropertyQNameFault">
          <soap:fault name="InvalidResourcePropertyQNameFault"
use="literal"/>
          </fault>
          <fault name="UnknownQueryExpressionDialectFault">
          <soap:fault name="UnknownQueryExpressionDialectFault"
use="literal"/>
          </fault>
          <fault name="InvalidQueryExpressionFault">
          <soap:fault name="InvalidQueryExpressionFault"
use="literal"/>
          </fault>
          <fault name="QueryEvaluationErrorFault">
          <soap:fault name="QueryEvaluationErrorFault"
use="literal"/>
          </fault>
          </operation>
<!-- *** If you wish to implement the WSRL ImmediateResourceTermination portType,
          uncomment the below operation block *** -->
          <operation name="Destroy">
          <soap:operation style="document"/>
          <input>
          <soap:body use="literal"/>
          </input>
          <output>
          <soap:body use="literal"/>
          </output>
          <fault name="ResourceUnknownFault">
          <soap:fault name="ResourceUnknownFault" use="literal"/>
          </fault>
          <fault name="ResourceNotDestroyedFault">
          <soap:fault name="ResourceNotDestroyedFault"
use="literal"/>
          </fault>
</operation> <!-- *** If you wish to implement the WSRL ScheduledResourceTermination portType,
          uncomment the below operation block *** -->
          <operation name="SetTerminationTime">
          <soap:operation style="document"/>
          <input>
          <soap:body use="literal"/>
          </input>
          <output>
          <soap:body use="literal"/>
          </output>
          <fault name="ResourceUnknownFault">
          <soap:fault name="ResourceUnknownFault" use="literal"/>
          </fault>
          <fault name="UnableToSetTerminationTimeFault">
          <soap:fault name="UnableToSetTerminationTimeFault"
use="literal"/>
          </fault>
          <fault name="TerminationTimeChangeRejectedFault">
          <soap:fault name="TerminationTimeChangeRejectedFault"
use="literal"/>
          </fault>
          </operation>
<!-- *** If you wish to implement the WS-MetadataExchange MetadataExchange portType,
          uncomment the below operation block *** -->
          <operation name="GetMetadata" >
          <soap:operation style="document"/>
          <input>
          <soap:body use="literal"/>
          </input>
          <output>
          <soap:body use="literal"/>
          </output>
          </operation>
          <operation name="Get" >
          <soap:operation style="document"/>
          <input>
          <soap:body use="literal"/>
          </input>
          <output>
          <soap:body use="literal"/>
          </output>
          </operation>
<!-- *** Add operation blocks for custom operations here *** -->

      <operation name="GetMultipleResourceProperties">
          <soap:operation
soapAction="http://gemss.par.univie.ac.at/service/convert/GetMultipleRe
s
ourceProperties"
/>
          <input name="GetMultipleResourcePropertiesRequest">
              <soap:body use="literal" />
          </input>
          <output name="GetMultipleResourcePropertiesResponse">
              <soap:body use="literal" />
          </output>
          <fault name="ResourceUnknownFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal" name="ResourceUnknownFault" />
          </fault>
          <fault name="InvalidResourcePropertyQNameFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal"
name="InvalidResourcePropertyQNameFault" />
          </fault>
      </operation>
      <operation name="SetResourceProperties">
          <soap:operation
soapAction="http://gemss.par.univie.ac.at/service/convert/SetResourcePr
o
perties"
/>
          <input name="SetResourcePropertiesRequest">
              <soap:body use="literal" />
          </input>
          <output name="SetResourcePropertiesResponse">
              <soap:body use="literal" />
          </output>
          <fault name="ResourceUnknownFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal" name="ResourceUnknownFault" />
          </fault>
          <fault name="InvalidResourcePropertyQNameFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal"
name="InvalidResourcePropertyQNameFault" />
          </fault>
          <fault
              name="InvalidSetResourcePropertiesRequestContentFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal"
name="InvalidSetResourcePropertiesRequestContentFault" />
          </fault>
          <fault name="UnableToModifyResourcePropertyFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal"
name="UnableToModifyResourcePropertyFault" />
          </fault>
          <fault name="SetResourcePropertyRequestFailedFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal"
name="SetResourcePropertyRequestFailedFault" />
          </fault>
      </operation>
      <operation name="QueryResourceProperties">
          <soap:operation
soapAction="http://gemss.par.univie.ac.at/service/convert/QueryResource
P
roperties"
/>
          <input name="QueryResourcePropertiesRequest">
              <soap:body use="literal" />
          </input>
          <output name="QueryResourcePropertiesResponse">
              <soap:body use="literal" />
          </output>
          <fault name="ResourceUnknownFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal" name="ResourceUnknownFault" />
          </fault>
          <fault name="InvalidResourcePropertyQNameFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal"
name="InvalidResourcePropertyQNameFault" />
          </fault>
          <fault name="UnknownQueryExpressionDialectFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal"
name="UnknownQueryExpressionDialectFault" />
          </fault>
          <fault name="InvalidQueryExpressionFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal" name="InvalidQueryExpressionFault" />
          </fault>
          <fault name="QueryEvaluationErrorFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal" name="QueryEvaluationErrorFault" />
          </fault>
      </operation>
      <operation name="Destroy">
          <soap:operation
soapAction="http://gemss.par.univie.ac.at/service/convert/Destroy"; />
          <input>
              <soap:body use="literal" />
          </input>
          <output>
              <soap:body use="literal" />
          </output>
          <fault name="ResourceUnknownFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal" name="ResourceUnknownFault" />
          </fault>
          <fault name="ResourceNotDestroyedFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal" name="ResourceNotDestroyedFault" />
          </fault>
      </operation>
      <operation name="SetTerminationTime">
          <soap:operation
soapAction="http://gemss.par.univie.ac.at/service/convert/SetTerminatio
n
Time"
/>
          <input>
              <soap:body use="literal" />
          </input>
          <output>
              <soap:body use="literal" />
          </output>
          <fault name="ResourceUnknownFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal" name="ResourceUnknownFault" />
          </fault>
          <fault name="UnableToSetTerminationTimeFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal"
name="UnableToSetTerminationTimeFault"
/>
          </fault>
          <fault name="TerminationTimeChangeRejectedFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal"
name="TerminationTimeChangeRejectedFault" />
          </fault>
      </operation>
      <operation name="GetMetadata">
          <soap:operation
soapAction="http://gemss.par.univie.ac.at/service/convert/GetMetadata";
/>
          <input>
              <soap:body use="literal" />
          </input>
          <output>
              <soap:body use="literal" />
          </output>
      </operation>
      <operation name="Get">
          <soap:operation
soapAction="http://gemss.par.univie.ac.at/service/convert/Get"; />
          <input>
              <soap:body use="literal" />
          </input>
          <output>
              <soap:body use="literal" />
          </output>
      </operation>
      <operation name="convertAnalyze2DICOM">
          <soap:operation
soapAction="http://gemss.par.univie.ac.at/service/convert/Analyze2DICOM
"
/>
          <input name="Analyze2DICOMRequest">
              <soap:body use="literal" />
          </input>
          <output name="Analyze2DICOMResponse">
              <soap:body use="literal" />
          </output>
          <fault name="ConversionFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal" name="ConversionFault" />
          </fault>
      </operation>
      <operation name="convertDICOM2Analyze">
          <soap:operation
soapAction="http://gemss.par.univie.ac.at/service/convert/DICOM2Analyze
"
/>
          <input name="DICOM2AnalyzeRequest">
              <soap:body use="literal" />
          </input>
          <output name="DICOM2AnalyzeResponse">
              <soap:body use="literal" />
          </output>
          <fault name="ConversionFault">
              <soap:fault
namespace="http://gemss.par.univie.ac.at/service/convert";
                  use="literal" name="ConversionFault" />
          </fault>
      </operation>
  </binding>

  <service name="MedicalImageConverterService">
<!-- Note: the port name becomes the service name in the wsdd generated by Wsdl2Java --> <!-- *** Change the port name and the soap:address location below to reflect the desired endpoint URL *** -->
      <port name="MedicalImageConverterPort"
binding="tns:MedicalImageConverterSoapHttpBinding">
          <soap:address
location="http://localhost:8080/wsrf/services/DICOM2AnalyzeConverterPor
t
" />
      </port>
  </service>

</definitions>



Campana Jr., Salvatore J wrote:



Wolfgang,

Could you send the wsdl and the generated custom interface you mention

so we can see what you are talking about?

Thx,

-S

-----Original Message-----
From: Wolfgang Schreiner [mailto:[EMAIL PROTECTED]
Sent: Friday, October 21, 2005 5:04 AM
To: wsrf-user@ws.apache.org
Subject: Re: wsdl2java

i forgot to mention, another thing is the multiple occurence of the same
method:
though only 2 methods are specified in the wsrf-wsdl, the custom operations port type interface contains 3 methods, duplicating the former one.


Wolfgang Schreiner wrote:



hi,

after creating my own wsrf compliant wsdl-file using the template that


comes with the wsrf distribution, i managed to successfully build wsrf


relevant artefacts, including xml beans and wsrf classes.
unfortunately, i have some trouble compiling the generated sources, since wsdl2java appears to create some weird package names, and i do not know how comes.

for instance, i define a fault message in the wsdl as follows:
<message name="ConversionFault">
    <part name="ConversionFault" element="tns:ConversionFault"/>
</message>

and the appropriate element is defined as:
<element name="ConversionFault">
    <complexType>
        <complexContent>
            <extension base="wsbf:BaseFaultType" />
        </complexContent>
    </complexType>
</element>

this results in a ConversionFaultDocument.java file containing a static
final field public static final org.apache.xmlbeans.SchemaType type =

(org.apache.xmlbeans.SchemaType)schemaorg_apache_xmlbeans.system.s675
C
F
B865FA2D7CF1A4282E3CE60AF0E.TypeSystemHolder.typeSystem.resolveHandle
(
"


conversionfault3a4edoctype");

when using the file-system example everything work fine.
what am i doing wrong? is there a documentation about the concrete behavior of the wsdl2java tool containing descriptions of the effects

of certain modifications?

regards,
wol.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
The best way to predict the future is to invent it - Alan Kay


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to