[vwnc] i cannot create wsdl schema

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] i cannot create wsdl schema

Leandro Andres Aguilar
 Hi! i am trying to create a wsdl schema following the steps explained in "VW 7.1 SOAP Tutorial (Draft)
By Roger Whitney ([hidden email]) " but when i execute the code below it raises an exception in the "createMessageNode" method.I do not know why,i did all the necesary things.Besides,the web services wizard also does not work ok,i could not find a tutorial
well explained to use it.I have try a lot but still can not create a web service in smalltalk. I use vwnc 7.6.Thanks a lot.

serviceClass := Greetings.
wsdlBuilder := WsdlBuilder new.
wsdlBuilder useRPC.
wsdlBuilder
buildFromService: serviceClass
classNamespace: 'Smalltalk'
targetNamespace: 'urn:Hellonamespace'.
wsdlBuilder
setPortAddress: 'http://localhost:8889/Hello'
forBindingNamed: serviceClass name asString
wsdlServiceNamed: serviceClass name asString.
stream := (String new: 2048) writeStream.
wsdlBuilder printSpecWithSmalltalkBindingOn: stream.
wsdl := stream contents.
WsdlBinding loadWsdlBindingFrom: wsdl readStream.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] i cannot create wsdl schema

Leandro Perez-2
On Tue, Sep 30, 2008 at 9:42 AM, Leandro Andres Aguilar <[hidden email]> wrote:
 Hi! i am trying to create a wsdl schema following the steps explained in "VW 7.1 SOAP Tutorial (Draft)
By Roger Whitney ([hidden email]) " but when i execute the code below it raises an exception in the "createMessageNode" method.I do not know why,i did all the necesary things.Besides,the web services wizard also does not work ok,i could not find a tutorial
well explained to use it.I have try a lot but still can not create a web service in smalltalk. I use vwnc 7.6.Thanks a lot.
 
Take a look at WebServices.pdf, inside the vw7.6nc\doc folder.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] i cannot create wsdl schema

Kogan, Tamara
In reply to this post by Leandro Andres Aguilar
It's hard to say what happened based on this code.
Does your service class have operations described in pragmas?

I attached two tutorials and you can find WS demos in Cincom public
repository: WebServicesTimeDemo and WebServicesDemo. WebServicesDemo is
used in the attached tutorials.

HTH,
Tamara Kogan
Smalltalk development,
Cincom Systems

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
Behalf
> Of Leandro Andres Aguilar
> Sent: Tuesday, September 30, 2008 8:43 AM
> To: [hidden email]
> Subject: [vwnc] i cannot create wsdl schema
>
>  Hi! i am trying to create a wsdl schema following the steps explained
in
> "VW 7.1 SOAP Tutorial (Draft)
> By Roger Whitney ([hidden email]) " but when i execute the code
below
> it raises an exception in the "createMessageNode" method.I do not know
> why,i did all the necesary things.Besides,the web services wizard also
> does not work ok,i could not find a tutorial
> well explained to use it.I have try a lot but still can not create a
web

> service in smalltalk. I use vwnc 7.6.Thanks a lot.
>
> serviceClass := Greetings.
> wsdlBuilder := WsdlBuilder new.
> wsdlBuilder useRPC.
> wsdlBuilder
> buildFromService: serviceClass
> classNamespace: 'Smalltalk'
> targetNamespace: 'urn:Hellonamespace'.
> wsdlBuilder
> setPortAddress: 'http://localhost:8889/Hello'
> forBindingNamed: serviceClass name asString
> wsdlServiceNamed: serviceClass name asString.
> stream := (String new: 2048) writeStream.
> wsdlBuilder printSpecWithSmalltalkBindingOn: stream.
> wsdl := stream contents.
> WsdlBinding loadWsdlBindingFrom: wsdl readStream.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

WebServicesTutorial.zip (211K) Download Attachment
XML2OTutorial.zip (42K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] i cannot create wsdl schema

Leandro Perez-2
Hello everyone

I tried to replay what the other Leandro did while he was trying to use the wizard to expose an application as a web service. I found the same error he did. I followed these steps, as the WebServices.pdf document indicate:
1. Load the WebServices parcels.
2. Start the Wizard so I can "Expose an application as a web service".
3. In the Wizard-Describe Port Type operations page: I choose my service class (a simple Person class with only one method that returns its name, a constant string) and then the protocol containing the method that I need to export, i.e. #name. After that, I describe the #name operation. Nothing wrong at all at this point.
4. In the next page, Add Header processors to operations


It's hard to say what happened based on this code.
Does your service class have operations described in pragmas?

I attached two tutorials and you can find WS demos in Cincom public
repository: WebServicesTimeDemo and WebServicesDemo. WebServicesDemo is
used in the attached tutorials.
 

HTH,
Tamara Kogan
Smalltalk development,
Cincom Systems

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
Behalf
> Of Leandro Andres Aguilar
> Sent: Tuesday, September 30, 2008 8:43 AM
> To: [hidden email]
> Subject: [vwnc] i cannot create wsdl schema
>
>  Hi! i am trying to create a wsdl schema following the steps explained
in
> "VW 7.1 SOAP Tutorial (Draft)
> By Roger Whitney ([hidden email]) " but when i execute the code
below
> it raises an exception in the "createMessageNode" method.I do not know
> why,i did all the necesary things.Besides,the web services wizard also
> does not work ok,i could not find a tutorial
> well explained to use it.I have try a lot but still can not create a
web
> service in smalltalk. I use vwnc 7.6.Thanks a lot.
>
> serviceClass := Greetings.
> wsdlBuilder := WsdlBuilder new.
> wsdlBuilder useRPC.
> wsdlBuilder
> buildFromService: serviceClass
> classNamespace: 'Smalltalk'
> targetNamespace: 'urn:Hellonamespace'.
> wsdlBuilder
> setPortAddress: 'http://localhost:8889/Hello'
> forBindingNamed: serviceClass name asString
> wsdlServiceNamed: serviceClass name asString.
> stream := (String new: 2048) writeStream.
> wsdlBuilder printSpecWithSmalltalkBindingOn: stream.
> wsdl := stream contents.
> WsdlBinding loadWsdlBindingFrom: wsdl readStream.


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] i cannot create wsdl schema

Leandro Perez-2
In reply to this post by Kogan, Tamara
Hello everyone

I tried to replay what the other Leandro did while he was trying to use the wizard to expose an application as a web service. I found the same error he did. I followed these steps, as the WebServices.pdf document indicate:
1. Load the WebServices parcels.
2. Start the Wizard so I can "Expose an application as a web service".
3. In the Wizard-Describe Port Type operations page: I choose my service class (a simple Person class with only one method that returns its name, a constant string) and then the protocol containing the method that I need to export, i.e. #name. After that, I describe the #name operation. Nothing wrong at all at this point.
4. In the next page, Add Header processors to operations


It's hard to say what happened based on this code.
Does your service class have operations described in pragmas?

I attached two tutorials and you can find WS demos in Cincom public
repository: WebServicesTimeDemo and WebServicesDemo. WebServicesDemo is
used in the attached tutorials.
 

HTH,
Tamara Kogan
Smalltalk development,
Cincom Systems

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
Behalf
> Of Leandro Andres Aguilar
> Sent: Tuesday, September 30, 2008 8:43 AM
> To: [hidden email]
> Subject: [vwnc] i cannot create wsdl schema
>
>  Hi! i am trying to create a wsdl schema following the steps explained
in
> "VW 7.1 SOAP Tutorial (Draft)
> By Roger Whitney ([hidden email]) " but when i execute the code
below
> it raises an exception in the "createMessageNode" method.I do not know
> why,i did all the necesary things.Besides,the web services wizard also
> does not work ok,i could not find a tutorial
> well explained to use it.I have try a lot but still can not create a
web
> service in smalltalk. I use vwnc 7.6.Thanks a lot.
>
> serviceClass := Greetings.
> wsdlBuilder := WsdlBuilder new.
> wsdlBuilder useRPC.
> wsdlBuilder
> buildFromService: serviceClass
> classNamespace: 'Smalltalk'
> targetNamespace: 'urn:Hellonamespace'.
> wsdlBuilder
> setPortAddress: 'http://localhost:8889/Hello'
> forBindingNamed: serviceClass name asString
> wsdlServiceNamed: serviceClass name asString.
> stream := (String new: 2048) writeStream.
> wsdlBuilder printSpecWithSmalltalkBindingOn: stream.
> wsdl := stream contents.
> WsdlBinding loadWsdlBindingFrom: wsdl readStream.


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] i cannot create wsdl schema

Leandro Perez-2
I accidentally clicked on the send button too early, sorry for the noise.

I was on step 4, here I include the entire text.

I tried to replay what the other Leandro did while he was trying to use the wizard to expose an application as a web service. I found the same error he did. I followed these steps, as the WebServices.pdf document indicate:
1. Load the WebServices parcels.
2. Start the Wizard so I can "Expose an application as a web service".
3. In the Wizard-Describe Port Type operations page: I choose my service class (a simple Person class with only one method that returns its name, a constant string) and then the protocol containing the method that I need to export, i.e. #name. After that, I describe the #name operation. Nothing wrong at all at this point.
 
4. In the next page: Add Header processors to operations (Optional),  I don't need to do anything so I click next.
5. The problem arises In the Describe Complex types page: as I don't have any complex types, I just click next and right then, this message pops up: "Message not understood: #categoryModule"

The problem is:
inside Smalltalk.WebServices.GenerateOpentalkClass>>initializeAspects, the message #categoryModule is sent to a DefinitionCreationDialog instance and that method is not implemented in that class or any of its superclasses.
As a workaround, I commented that line and hit play. The result: everything back to normal,
I was on the next Wizard page. Then the wizard finished its job and I had the Server, Client and everything else, up and running.

Does anyone have a clue on what could be wrong with the wizard? could it be some deprecated code left behind or something like that?

Greetings,
Leandro Pérez

 



It's hard to say what happened based on this code.
Does your service class have operations described in pragmas?

I attached two tutorials and you can find WS demos in Cincom public
repository: WebServicesTimeDemo and WebServicesDemo. WebServicesDemo is
used in the attached tutorials.
 

HTH,
Tamara Kogan
Smalltalk development,
Cincom Systems

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
Behalf
> Of Leandro Andres Aguilar
> Sent: Tuesday, September 30, 2008 8:43 AM
> To: [hidden email]
> Subject: [vwnc] i cannot create wsdl schema
>
>  Hi! i am trying to create a wsdl schema following the steps explained
in
> "VW 7.1 SOAP Tutorial (Draft)
> By Roger Whitney ([hidden email]) " but when i execute the code
below
> it raises an exception in the "createMessageNode" method.I do not know
> why,i did all the necesary things.Besides,the web services wizard also
> does not work ok,i could not find a tutorial
> well explained to use it.I have try a lot but still can not create a
web
> service in smalltalk. I use vwnc 7.6.Thanks a lot.
>
> serviceClass := Greetings.
> wsdlBuilder := WsdlBuilder new.
> wsdlBuilder useRPC.
> wsdlBuilder
> buildFromService: serviceClass
> classNamespace: 'Smalltalk'
> targetNamespace: 'urn:Hellonamespace'.
> wsdlBuilder
> setPortAddress: 'http://localhost:8889/Hello'
> forBindingNamed: serviceClass name asString
> wsdlServiceNamed: serviceClass name asString.
> stream := (String new: 2048) writeStream.
> wsdlBuilder printSpecWithSmalltalkBindingOn: stream.
> wsdl := stream contents.
> WsdlBinding loadWsdlBindingFrom: wsdl readStream.


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc




_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] i cannot create wsdl schema

Kogan, Tamara
Created
55256: "WS wizard raises MNU for "Expose an application as a web service""

> Does anyone have a clue on what could be wrong with the wizard? could it
> be some deprecated code left behind or something like that?

You are right it is deprecated code and removing this line is the correct fix.

Thanks,
Tamara Kogan
Smalltalk development,
Cincom Systems

> -----Original Message-----
> From: Leandro Perez [mailto:[hidden email]]
> Sent: Wednesday, October 01, 2008 12:23 PM
> To: Kogan, Tamara
> Cc: Leandro Andres Aguilar; [hidden email]
> Subject: Re: [vwnc] i cannot create wsdl schema
>
> I accidentally clicked on the send button too early, sorry for the noise.
>
> I was on step 4, here I include the entire text.
>
>
> I tried to replay what the other Leandro did while he was trying to use
> the wizard to expose an application as a web service. I found the same
> error he did. I followed these steps, as the WebServices.pdf document
> indicate:
> 1. Load the WebServices parcels.
> 2. Start the Wizard so I can "Expose an application as a web service".
> 3. In the Wizard-Describe Port Type operations page: I choose my service
> class (a simple Person class with only one method that returns its name, a
> constant string) and then the protocol containing the method that I need
> to export, i.e. #name. After that, I describe the #name operation. Nothing
> wrong at all at this point.
>
>
> 4. In the next page: Add Header processors to operations (Optional),  I
> don't need to do anything so I click next.
> 5. The problem arises In the Describe Complex types page: as I don't have
> any complex types, I just click next and right then, this message pops up:
> "Message not understood: #categoryModule"
>
> The problem is:
> inside Smalltalk.WebServices.GenerateOpentalkClass>>initializeAspects, the
> message #categoryModule is sent to a DefinitionCreationDialog instance and
> that method is not implemented in that class or any of its superclasses.
> As a workaround, I commented that line and hit play. The result:
> everything back to normal,
> I was on the next Wizard page. Then the wizard finished its job and I had
> the Server, Client and everything else, up and running.
>
> Does anyone have a clue on what could be wrong with the wizard? could it
> be some deprecated code left behind or something like that?
>
> Greetings,
> Leandro Pérez
>
>
>
>
>
>
> It's hard to say what happened based on this code.
> Does your service class have operations described in pragmas?
>
> I attached two tutorials and you can find WS demos in Cincom
> public
> repository: WebServicesTimeDemo and WebServicesDemo.
> WebServicesDemo is
> used in the attached tutorials.
>
>
>
>
>
> HTH,
> Tamara Kogan
> Smalltalk development,
> Cincom Systems
>
>
> > -----Original Message-----
> > From: [hidden email] [mailto:vwnc-
> [hidden email]] On
> Behalf
> > Of Leandro Andres Aguilar
> > Sent: Tuesday, September 30, 2008 8:43 AM
> > To: [hidden email]
> > Subject: [vwnc] i cannot create wsdl schema
> >
> >  Hi! i am trying to create a wsdl schema following the steps
> explained
> in
> > "VW 7.1 SOAP Tutorial (Draft)
> > By Roger Whitney ([hidden email]) " but when i execute
> the code
> below
> > it raises an exception in the "createMessageNode" method.I
> do not know
> > why,i did all the necesary things.Besides,the web services
> wizard also
> > does not work ok,i could not find a tutorial
> > well explained to use it.I have try a lot but still can not
> create a
> web
> > service in smalltalk. I use vwnc 7.6.Thanks a lot.
> >
> > serviceClass := Greetings.
> > wsdlBuilder := WsdlBuilder new.
> > wsdlBuilder useRPC.
> > wsdlBuilder
> > buildFromService: serviceClass
> > classNamespace: 'Smalltalk'
> > targetNamespace: 'urn:Hellonamespace'.
> > wsdlBuilder
> > setPortAddress: 'http://localhost:8889/Hello'
> > forBindingNamed: serviceClass name asString
> > wsdlServiceNamed: serviceClass name asString.
> > stream := (String new: 2048) writeStream.
> > wsdlBuilder printSpecWithSmalltalkBindingOn: stream.
> > wsdl := stream contents.
> > WsdlBinding loadWsdlBindingFrom: wsdl readStream.
>
>
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>
>
>


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc