How can you have more than one operation of the same name, regardless of whether they belong to same or different portTypes, when each operation has a corresponding wsimport-generated wrapper class named after the operation name???What is/are the correct statement(s) about the following WSDL extract?
<definitions>
. . .
<portType name="StringUtilityServer">
<operation name="Echo">
. . .
</operation>
</portType>
<portType name="UtilityServer">
<operation name="Echo">
. . .
</operation>
</portType>
. . .
</definitions>
Correct answers:
- This WSDL is Basic Profile v1.1 compliant.
- If you remove the portType with name UtilityServer the WSDL will be Basic Profile v1.1 compliant.
About Question enthuware.ocejws.v6.2.321 :
Moderators: Site Manager, fjwalraven
-
- Posts: 41
- Joined: Mon Oct 27, 2014 11:35 pm
- Contact:
About Question enthuware.ocejws.v6.2.321 :
For the question:
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.321 :
This question is about the WSDL specifications and according to these specifications it is allowed.How can you have more than one operation of the same name, regardless of whether they belong to same or different portTypes, when each operation has a corresponding wsimport-generated wrapper class named after the operation name???
-
- Posts: 41
- Joined: Mon Oct 27, 2014 11:35 pm
- Contact:
Re: About Question enthuware.ocejws.v6.2.321 :
How about Basic Profile v1.1... does BPv1.1 allow duplication of operation names as long as those operations belong to different portTypes?
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.321 :
even better!
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.321 :
I misread your question, I thought you had looked it up in Basic Profile v1.1.
Anyway here is the conformation from BP:
Frits
Anyway here is the conformation from BP:
Regards,R2304 A wsdl:portType in a DESCRIPTION MUST have operations with distinct values for their name attributes.
Note that this requirement applies only to the wsdl:operations within a given wsdl:portType. A wsdl:portType may have wsdl:operations with names that are the same as those found in other wsdl:portTypes.
Frits
-
- Posts: 41
- Joined: Mon Oct 27, 2014 11:35 pm
- Contact:
Re: About Question enthuware.ocejws.v6.2.321 :
Ok got it. I looked up the BP specs to find out, but I think I missed this last part of the explanation so I had to ask.fjwalraven wrote:I misread your question, I thought you had looked it up in Basic Profile v1.1.
Anyway here is the conformation from BP:Regards,R2304 A wsdl:portType in a DESCRIPTION MUST have operations with distinct values for their name attributes.
Note that this requirement applies only to the wsdl:operations within a given wsdl:portType. A wsdl:portType may have wsdl:operations with names that are the same as those found in other wsdl:portTypes.
Frits
Thanks again.
-
- Posts: 124
- Joined: Wed Feb 12, 2014 2:44 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.321 :
Hello ,
If this WSDL is a Basic Profile v1.1 compliant with two operations with the same name, how ws-import will create the java artifices ?
Which operation parameter will be used and which will take the percipience ?
If this WSDL is a Basic Profile v1.1 compliant with two operations with the same name, how ws-import will create the java artifices ?
Which operation parameter will be used and which will take the percipience ?
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.321 :
Hi
The thing to grab here is that the operation (with the same name) is exposed in two different interfaces (SEI <- wsdl:portType).
Regards,
Frits
The thing to grab here is that the operation (with the same name) is exposed in two different interfaces (SEI <- wsdl:portType).
Regards,
Frits
-
- Posts: 1
- Joined: Thu Nov 26, 2015 1:39 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.321 :
Hello,
We have the same question v6.2.323 and v6.2.321 and each question has diferent answers. What is the correct one?
Thxs!!
We have the same question v6.2.323 and v6.2.321 and each question has diferent answers. What is the correct one?
Thxs!!
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.321 :
Hi!
Question 323 has two operations with the same name inside one portType:
This is not allowed, however the same operation name in two different portTypes is allowed:
Regards,
Frits
Not entirely.We have the same question v6.2.323 and v6.2.321
Question 323 has two operations with the same name inside one portType:
Code: Select all
<portType name="StringUtilityServer">
<operation name="Echo">
. . .
</operation>
<operation name="Echo">
. . .
</operation>
</portType>
Code: Select all
<portType name="StringUtilityServer">
<operation name="Echo">
. . .
</operation>
</portType>
<portType name="UtilityServer">
<operation name="Echo">
. . .
</operation>
</portType>
Frits
-
- Posts: 31
- Joined: Wed Mar 16, 2016 8:38 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.321 :
Hello,
on Java Webservices Up and Running I found:
Thank you
Fabio
on Java Webservices Up and Running I found:
Who is right?Recall that a WSDL has but one portType
Thank you
Fabio
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.321 :
Hi Fabio,
The WSDL v1.1 specification allows multiple portTypes:
Frits
The WSDL v1.1 specification allows multiple portTypes:
Regards,2.4 Port Types
A port type is a named set of abstract operations and the abstract messages involved.
<wsdl:definitions .... >
<wsdl:portType name="nmtoken">
<wsdl:operation name="nmtoken" .... /> *
</wsdl:portType>
</wsdl:definitions>
The port type name attribute provides a unique name among all port types defined within in the enclosing WSDL document.
Frits
Who is online
Users browsing this forum: No registered users and 2 guests