You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Brady Johnson <bj...@roguewave.com> on 2007/07/11 20:13:18 UTC

RE: SCA Toys?

 
I havent seen much posted about this lately.

I have a "toy" for TuscanySCA C++ that will use the SCARuntime to load a
service and dump out pertinent information. Also, if there are any
failures, it will dump that to stderr as well.

See below for a sample output with the CppBigBank service:

After looking at the svn structure, maybe the best place for it would
be:

cpp/sca/toys

If anyone thinks this would be useful, I'll attach the code and someone
can submit it for me.

Thanks

--------------------
Brady Johnson
Lead Software Developer - HydraSCA
Rogue Wave Software - brady.johnson@roguewave.com


[bjohnson@pyramid4 bin]$ ./tuscanyServiceChecker -ir ${TUSCANY_SCACPP}
-sr ${TUSCANY_SCACPP}/samples/CppBigBank/deploy
Included composite: bigbank.app
        WSDL namespace: http://www.bigbank.com/AccountService
                PortType: AccountService
                        Operation Info:
                                OperationName:     getAccountReport
                                SOAP Action:
http://www.bigbank.com/AccountService/getAccountReport
                                Endpoint:
http://localhost:9090/axis2/services/bigbank.AccountManagementComponent/
AccountService
                                SOAP version:      0
                                Document Style:    1
                                Wrapped Style:     1
                                In Encoded Style:  0
                                Out Encoded Style: 0
                                InputMsgURI:
http://www.bigbank.com/AccountService
                                InputMsgName:
getAccountReportRequest
                                OutputMsgURI:
http://www.bigbank.com/AccountService
                                OutputMsgName:
getAccountReportResponse
                                Input Message Part:
                                         Name: getAccountReportRequest
                                         Type: getAccountReport
                                         URI:
http://www.bigbank.com/AccountService
                                Output Message Part:
                                         Name: getAccountReportResponse
                                         Type: getAccountReportResponse
                                         URI:
http://www.bigbank.com/AccountService
        WSDL namespace: http://www.webserviceX.NET/
                PortType: StockQuoteSoap
                        Operation Info:
                                OperationName:     GetQuote
                                SOAP Action:
http://www.webserviceX.NET/GetQuote
                                Endpoint:
http://www.webservicex.net/stockquote.asmx
                                SOAP version:      0
                                Document Style:    1
                                Wrapped Style:     1
                                In Encoded Style:  0
                                Out Encoded Style: 0
                                InputMsgURI:
http://www.webserviceX.NET/
                                InputMsgName:      GetQuoteSoapIn
                                OutputMsgURI:
http://www.webserviceX.NET/
                                OutputMsgName:     GetQuoteSoapOut
                                Input Message Part:
                                         Name: parameters
                                         Type: GetQuote
                                         URI:
http://www.webserviceX.NET/
                                Output Message Part:
                                         Name: parameters
                                         Type: GetQuoteResponse
                                         URI:
http://www.webserviceX.NET/


-----Original Message-----
From: Simon Laws [mailto:simonslaws@googlemail.com] 
Sent: Thursday, June 21, 2007 10:48 AM
To: tuscany-dev
Subject: SCA Toys?

I've collected a couple of utilites that have helped me during debugging
some problems (
http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/slaws/sample-s
ca-toys/).
For example this is the code I drop at the end of a test to print out
the model hierarchy that was built:

        // inspect the model
        Field domainCompositeField = scaDomain.getClass
().getDeclaredField("domainComposite");
        domainCompositeField.setAccessible(true);
        Composite domainComposite = (Composite)
domainCompositeField.get(scaDomain);

        OutputStream os = new ByteArrayOutputStream();
        PrintUtil printUtil = new PrintUtil(os);
        printUtil.print(domainComposite);
        System.out.println("Assembly \n " + os.toString());

I'm sure people have much smarter utils than I that they use to make
their lives easier. If you have tools are you prepared to share them?

How about we create a module:

java/sca/devtools

or even

java/devtools

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: SCA Toys?

Posted by Simon Laws <si...@googlemail.com>.
On 7/13/07, Pete Robbins <ro...@googlemail.com> wrote:
>
> I've added the patch for TUSCANY-1423 into tuscany/cpp/sca/tools now
> that I have moved the scagen tool to the cpp extension.
>
> I have not added this source into the build. We can use this tree to
> see how the ant build works???
>
> Cheers,
>
> On 12/07/07, Pete Robbins <ro...@googlemail.com> wrote:
> > I'm thinking this should go in cpp/sca/tools. Currently we have the
> > scagen tool in that folder but I've been meaning to move that to
> > cpp\sca\runtime\extensions\cpp\tools for some time now as it is really
> > part of the C++ language extension.
> >
> > Cheers,
> >
> > On 11/07/07, Brady Johnson < bjohnson@roguewave.com> wrote:
> > >
> > > I created a JIRA for this:
> > >        https://issues.apache.org/jira/browse/TUSCANY-1423
> > >
> > > I also uploaded a patch, so its ready for some kindly commiter to
> submit
> > > it.
> > >
> > > FYI, the -model option doesn't work yet, since its depending on
> > > functionality to be added with:
> > >        https://issues.apache.org/jira/browse/TUSCANY-1422
> > >
> > > Thanks
> > >
> > > --------------------
> > > Brady Johnson
> > > Lead Software Developer - HydraSCA
> > > Rogue Wave Software - brady.johnson@roguewave.com
> > >
> > >
> > > -----Original Message-----
> > > From: Pete Robbins [mailto:robbinspg@googlemail.com]
> > > Sent: Wednesday, July 11, 2007 2:00 PM
> > > To: tuscany-dev@ws.apache.org
> > > Subject: Re: SCA Toys?
> > >
> > > Nice!
> > >
> > > please attach a patch to a Jira and I'll test/commit it.
> > >
> > > Cheers,
> > >
> > > On 11/07/07, Brady Johnson <bj...@roguewave.com> wrote:
> > > >
> > > > I havent seen much posted about this lately.
> > > >
> > > > I have a "toy" for TuscanySCA C++ that will use the SCARuntime to
> load
> > >
> > > > a service and dump out pertinent information. Also, if there are any
> > > > failures, it will dump that to stderr as well.
> > > >
> > > > See below for a sample output with the CppBigBank service:
> > > >
> > > > After looking at the svn structure, maybe the best place for it
> would
> > > > be:
> > > >
> > > > cpp/sca/toys
> > > >
> > > > If anyone thinks this would be useful, I'll attach the code and
> > > > someone can submit it for me.
> > > >
> > > > Thanks
> > > >
> > > > --------------------
> > > > Brady Johnson
> > > > Lead Software Developer - HydraSCA
> > > > Rogue Wave Software - brady.johnson@roguewave.com
> > > >
> > > >
> > > > [bjohnson@pyramid4 bin]$ ./tuscanyServiceChecker -ir
> ${TUSCANY_SCACPP}
> > >
> > > > -sr ${TUSCANY_SCACPP}/samples/CppBigBank/deploy
> > > > Included composite: bigbank.app
> > > >        WSDL namespace: http://www.bigbank.com/AccountService
> > > >                PortType: AccountService
> > > >                        Operation Info:
> > > >                                OperationName:     getAccountReport
> > > >                                SOAP Action:
> > > > http://www.bigbank.com/AccountService/getAccountReport
> > > >                                Endpoint:
> > > >
> http://localhost:9090/axis2/services/bigbank.AccountManagementComponen
> > > > t/
> > > > AccountService
> > > >                                SOAP version:      0
> > > >                                Document Style:    1
> > > >                                Wrapped Style:     1
> > > >                                In Encoded Style:  0
> > > >                                Out Encoded Style: 0
> > > >                                InputMsgURI:
> > > > http://www.bigbank.com/AccountService
> > > >                                InputMsgName:
> > > > getAccountReportRequest
> > > >                                OutputMsgURI:
> > > > http://www.bigbank.com/AccountService
> > > >                                OutputMsgName:
> > > > getAccountReportResponse
> > > >                                Input Message Part:
> > > >                                         Name:
> getAccountReportRequest
> > > >                                         Type: getAccountReport
> > > >                                         URI:
> > > > http://www.bigbank.com/AccountService
> > > >                                Output Message Part:
> > > >                                         Name:
> getAccountReportResponse
> > > >                                         Type:
> getAccountReportResponse
> > > >                                         URI:
> > > > http://www.bigbank.com/AccountService
> > > >        WSDL namespace: http://www.webserviceX.NET/
> > > >                PortType: StockQuoteSoap
> > > >                        Operation Info:
> > > >                                OperationName:     GetQuote
> > > >                                SOAP Action:
> > > > http://www.webserviceX.NET/GetQuote
> > > >                                Endpoint:
> > > > http://www.webservicex.net/stockquote.asmx
> > > >                                SOAP version:      0
> > > >                                Document Style:    1
> > > >                                Wrapped Style:     1
> > > >                                In Encoded Style:  0
> > > >                                Out Encoded Style: 0
> > > >                                InputMsgURI:
> > > > http://www.webserviceX.NET/
> > > >                                InputMsgName:      GetQuoteSoapIn
> > > >                                OutputMsgURI:
> > > > http://www.webserviceX.NET/
> > > >                                OutputMsgName:     GetQuoteSoapOut
> > > >                                Input Message Part:
> > > >                                         Name: parameters
> > > >                                         Type: GetQuote
> > > >                                         URI:
> > > > http://www.webserviceX.NET/
> > > >                                Output Message Part:
> > > >                                         Name: parameters
> > > >                                         Type: GetQuoteResponse
> > > >                                         URI:
> > > > http://www.webserviceX.NET/
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Simon Laws [mailto: simonslaws@googlemail.com]
> > > > Sent: Thursday, June 21, 2007 10:48 AM
> > > > To: tuscany-dev
> > > > Subject: SCA Toys?
> > > >
> > > > I've collected a couple of utilites that have helped me during
> > > > debugging some problems (
> > > >
> http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/slaws/sample
> > > > -s
> > > > ca-toys/).
> > > > For example this is the code I drop at the end of a test to print
> out
> > > > the model hierarchy that was built:
> > > >
> > > >        // inspect the model
> > > >        Field domainCompositeField = scaDomain.getClass
> > > > ().getDeclaredField("domainComposite");
> > > >        domainCompositeField.setAccessible(true);
> > > >        Composite domainComposite = (Composite)
> > > > domainCompositeField.get(scaDomain);
> > > >
> > > >        OutputStream os = new ByteArrayOutputStream();
> > > >        PrintUtil printUtil = new PrintUtil(os);
> > > >         printUtil.print(domainComposite);
> > > >        System.out.println("Assembly \n " + os.toString());
> > > >
> > > > I'm sure people have much smarter utils than I that they use to make
>
> > > > their lives easier. If you have tools are you prepared to share
> them?
> > > >
> > > > How about we create a module:
> > > >
> > > > java/sca/devtools
> > > >
> > > > or even
> > > >
> > > > java/devtools
> > > >
> > > > Simon
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Pete
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> > >
> > >
> >
> >
> > --
> > Pete
> >
>
>
> --
> Pete
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
> I actually got some time to tidy up the extension point registry inspector
in my sandbox and commit it to java/sca/tools. This may go away when we have
our logging story straight.

Simon

Re: SCA Toys?

Posted by Simon Laws <si...@googlemail.com>.
On 7/13/07, Pete Robbins <ro...@googlemail.com> wrote:
>
> I've added the patch for TUSCANY-1423 into tuscany/cpp/sca/tools now
> that I have moved the scagen tool to the cpp extension.
>
> I have not added this source into the build. We can use this tree to
> see how the ant build works???
>
> Cheers,
>
> On 12/07/07, Pete Robbins <ro...@googlemail.com> wrote:
> > I'm thinking this should go in cpp/sca/tools. Currently we have the
> > scagen tool in that folder but I've been meaning to move that to
> > cpp\sca\runtime\extensions\cpp\tools for some time now as it is really
> > part of the C++ language extension.
> >
> > Cheers,
> >
> > On 11/07/07, Brady Johnson < bjohnson@roguewave.com> wrote:
> > >
> > > I created a JIRA for this:
> > >        https://issues.apache.org/jira/browse/TUSCANY-1423
> > >
> > > I also uploaded a patch, so its ready for some kindly commiter to
> submit
> > > it.
> > >
> > > FYI, the -model option doesn't work yet, since its depending on
> > > functionality to be added with:
> > >        https://issues.apache.org/jira/browse/TUSCANY-1422
> > >
> > > Thanks
> > >
> > > --------------------
> > > Brady Johnson
> > > Lead Software Developer - HydraSCA
> > > Rogue Wave Software - brady.johnson@roguewave.com
> > >
> > >
> > > -----Original Message-----
> > > From: Pete Robbins [mailto:robbinspg@googlemail.com]
> > > Sent: Wednesday, July 11, 2007 2:00 PM
> > > To: tuscany-dev@ws.apache.org
> > > Subject: Re: SCA Toys?
> > >
> > > Nice!
> > >
> > > please attach a patch to a Jira and I'll test/commit it.
> > >
> > > Cheers,
> > >
> > > On 11/07/07, Brady Johnson <bj...@roguewave.com> wrote:
> > > >
> > > > I havent seen much posted about this lately.
> > > >
> > > > I have a "toy" for TuscanySCA C++ that will use the SCARuntime to
> load
> > >
> > > > a service and dump out pertinent information. Also, if there are any
> > > > failures, it will dump that to stderr as well.
> > > >
> > > > See below for a sample output with the CppBigBank service:
> > > >
> > > > After looking at the svn structure, maybe the best place for it
> would
> > > > be:
> > > >
> > > > cpp/sca/toys
> > > >
> > > > If anyone thinks this would be useful, I'll attach the code and
> > > > someone can submit it for me.
> > > >
> > > > Thanks
> > > >
> > > > --------------------
> > > > Brady Johnson
> > > > Lead Software Developer - HydraSCA
> > > > Rogue Wave Software - brady.johnson@roguewave.com
> > > >
> > > >
> > > > [bjohnson@pyramid4 bin]$ ./tuscanyServiceChecker -ir
> ${TUSCANY_SCACPP}
> > >
> > > > -sr ${TUSCANY_SCACPP}/samples/CppBigBank/deploy
> > > > Included composite: bigbank.app
> > > >        WSDL namespace: http://www.bigbank.com/AccountService
> > > >                PortType: AccountService
> > > >                        Operation Info:
> > > >                                OperationName:     getAccountReport
> > > >                                SOAP Action:
> > > > http://www.bigbank.com/AccountService/getAccountReport
> > > >                                Endpoint:
> > > >
> http://localhost:9090/axis2/services/bigbank.AccountManagementComponen
> > > > t/
> > > > AccountService
> > > >                                SOAP version:      0
> > > >                                Document Style:    1
> > > >                                Wrapped Style:     1
> > > >                                In Encoded Style:  0
> > > >                                Out Encoded Style: 0
> > > >                                InputMsgURI:
> > > > http://www.bigbank.com/AccountService
> > > >                                InputMsgName:
> > > > getAccountReportRequest
> > > >                                OutputMsgURI:
> > > > http://www.bigbank.com/AccountService
> > > >                                OutputMsgName:
> > > > getAccountReportResponse
> > > >                                Input Message Part:
> > > >                                         Name:
> getAccountReportRequest
> > > >                                         Type: getAccountReport
> > > >                                         URI:
> > > > http://www.bigbank.com/AccountService
> > > >                                Output Message Part:
> > > >                                         Name:
> getAccountReportResponse
> > > >                                         Type:
> getAccountReportResponse
> > > >                                         URI:
> > > > http://www.bigbank.com/AccountService
> > > >        WSDL namespace: http://www.webserviceX.NET/
> > > >                PortType: StockQuoteSoap
> > > >                        Operation Info:
> > > >                                OperationName:     GetQuote
> > > >                                SOAP Action:
> > > > http://www.webserviceX.NET/GetQuote
> > > >                                Endpoint:
> > > > http://www.webservicex.net/stockquote.asmx
> > > >                                SOAP version:      0
> > > >                                Document Style:    1
> > > >                                Wrapped Style:     1
> > > >                                In Encoded Style:  0
> > > >                                Out Encoded Style: 0
> > > >                                InputMsgURI:
> > > > http://www.webserviceX.NET/
> > > >                                InputMsgName:      GetQuoteSoapIn
> > > >                                OutputMsgURI:
> > > > http://www.webserviceX.NET/
> > > >                                OutputMsgName:     GetQuoteSoapOut
> > > >                                Input Message Part:
> > > >                                         Name: parameters
> > > >                                         Type: GetQuote
> > > >                                         URI:
> > > > http://www.webserviceX.NET/
> > > >                                Output Message Part:
> > > >                                         Name: parameters
> > > >                                         Type: GetQuoteResponse
> > > >                                         URI:
> > > > http://www.webserviceX.NET/
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Simon Laws [mailto: simonslaws@googlemail.com]
> > > > Sent: Thursday, June 21, 2007 10:48 AM
> > > > To: tuscany-dev
> > > > Subject: SCA Toys?
> > > >
> > > > I've collected a couple of utilites that have helped me during
> > > > debugging some problems (
> > > >
> http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/slaws/sample
> > > > -s
> > > > ca-toys/).
> > > > For example this is the code I drop at the end of a test to print
> out
> > > > the model hierarchy that was built:
> > > >
> > > >        // inspect the model
> > > >        Field domainCompositeField = scaDomain.getClass
> > > > ().getDeclaredField("domainComposite");
> > > >        domainCompositeField.setAccessible(true);
> > > >        Composite domainComposite = (Composite)
> > > > domainCompositeField.get(scaDomain);
> > > >
> > > >        OutputStream os = new ByteArrayOutputStream();
> > > >        PrintUtil printUtil = new PrintUtil(os);
> > > >         printUtil.print(domainComposite);
> > > >        System.out.println("Assembly \n " + os.toString());
> > > >
> > > > I'm sure people have much smarter utils than I that they use to make
>
> > > > their lives easier. If you have tools are you prepared to share
> them?
> > > >
> > > > How about we create a module:
> > > >
> > > > java/sca/devtools
> > > >
> > > > or even
> > > >
> > > > java/devtools
> > > >
> > > > Simon
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Pete
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> > >
> > >
> >
> >
> > --
> > Pete
> >
>
>
> --
> Pete
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
> I actually got some time to tidy up the extension point registry inspector
in my sandbox and commit it to java/sca/tools. This may go away when we have
our logging story straight.

Simon

Re: SCA Toys?

Posted by Pete Robbins <ro...@googlemail.com>.
I've added the patch for TUSCANY-1423 into tuscany/cpp/sca/tools now
that I have moved the scagen tool to the cpp extension.

I have not added this source into the build. We can use this tree to
see how the ant build works???

Cheers,

On 12/07/07, Pete Robbins <ro...@googlemail.com> wrote:
> I'm thinking this should go in cpp/sca/tools. Currently we have the
> scagen tool in that folder but I've been meaning to move that to
> cpp\sca\runtime\extensions\cpp\tools for some time now as it is really
> part of the C++ language extension.
>
> Cheers,
>
> On 11/07/07, Brady Johnson <bj...@roguewave.com> wrote:
> >
> > I created a JIRA for this:
> >        https://issues.apache.org/jira/browse/TUSCANY-1423
> >
> > I also uploaded a patch, so its ready for some kindly commiter to submit
> > it.
> >
> > FYI, the -model option doesn't work yet, since its depending on
> > functionality to be added with:
> >        https://issues.apache.org/jira/browse/TUSCANY-1422
> >
> > Thanks
> >
> > --------------------
> > Brady Johnson
> > Lead Software Developer - HydraSCA
> > Rogue Wave Software - brady.johnson@roguewave.com
> >
> >
> > -----Original Message-----
> > From: Pete Robbins [mailto:robbinspg@googlemail.com]
> > Sent: Wednesday, July 11, 2007 2:00 PM
> > To: tuscany-dev@ws.apache.org
> > Subject: Re: SCA Toys?
> >
> > Nice!
> >
> > please attach a patch to a Jira and I'll test/commit it.
> >
> > Cheers,
> >
> > On 11/07/07, Brady Johnson <bj...@roguewave.com> wrote:
> > >
> > > I havent seen much posted about this lately.
> > >
> > > I have a "toy" for TuscanySCA C++ that will use the SCARuntime to load
> >
> > > a service and dump out pertinent information. Also, if there are any
> > > failures, it will dump that to stderr as well.
> > >
> > > See below for a sample output with the CppBigBank service:
> > >
> > > After looking at the svn structure, maybe the best place for it would
> > > be:
> > >
> > > cpp/sca/toys
> > >
> > > If anyone thinks this would be useful, I'll attach the code and
> > > someone can submit it for me.
> > >
> > > Thanks
> > >
> > > --------------------
> > > Brady Johnson
> > > Lead Software Developer - HydraSCA
> > > Rogue Wave Software - brady.johnson@roguewave.com
> > >
> > >
> > > [bjohnson@pyramid4 bin]$ ./tuscanyServiceChecker -ir ${TUSCANY_SCACPP}
> >
> > > -sr ${TUSCANY_SCACPP}/samples/CppBigBank/deploy
> > > Included composite: bigbank.app
> > >        WSDL namespace: http://www.bigbank.com/AccountService
> > >                PortType: AccountService
> > >                        Operation Info:
> > >                                OperationName:     getAccountReport
> > >                                SOAP Action:
> > > http://www.bigbank.com/AccountService/getAccountReport
> > >                                Endpoint:
> > > http://localhost:9090/axis2/services/bigbank.AccountManagementComponen
> > > t/
> > > AccountService
> > >                                SOAP version:      0
> > >                                Document Style:    1
> > >                                Wrapped Style:     1
> > >                                In Encoded Style:  0
> > >                                Out Encoded Style: 0
> > >                                InputMsgURI:
> > > http://www.bigbank.com/AccountService
> > >                                InputMsgName:
> > > getAccountReportRequest
> > >                                OutputMsgURI:
> > > http://www.bigbank.com/AccountService
> > >                                OutputMsgName:
> > > getAccountReportResponse
> > >                                Input Message Part:
> > >                                         Name: getAccountReportRequest
> > >                                         Type: getAccountReport
> > >                                         URI:
> > > http://www.bigbank.com/AccountService
> > >                                Output Message Part:
> > >                                         Name: getAccountReportResponse
> > >                                         Type: getAccountReportResponse
> > >                                         URI:
> > > http://www.bigbank.com/AccountService
> > >        WSDL namespace: http://www.webserviceX.NET/
> > >                PortType: StockQuoteSoap
> > >                        Operation Info:
> > >                                OperationName:     GetQuote
> > >                                SOAP Action:
> > > http://www.webserviceX.NET/GetQuote
> > >                                Endpoint:
> > > http://www.webservicex.net/stockquote.asmx
> > >                                SOAP version:      0
> > >                                Document Style:    1
> > >                                Wrapped Style:     1
> > >                                In Encoded Style:  0
> > >                                Out Encoded Style: 0
> > >                                InputMsgURI:
> > > http://www.webserviceX.NET/
> > >                                InputMsgName:      GetQuoteSoapIn
> > >                                OutputMsgURI:
> > > http://www.webserviceX.NET/
> > >                                OutputMsgName:     GetQuoteSoapOut
> > >                                Input Message Part:
> > >                                         Name: parameters
> > >                                         Type: GetQuote
> > >                                         URI:
> > > http://www.webserviceX.NET/
> > >                                Output Message Part:
> > >                                         Name: parameters
> > >                                         Type: GetQuoteResponse
> > >                                         URI:
> > > http://www.webserviceX.NET/
> > >
> > >
> > > -----Original Message-----
> > > From: Simon Laws [mailto:simonslaws@googlemail.com]
> > > Sent: Thursday, June 21, 2007 10:48 AM
> > > To: tuscany-dev
> > > Subject: SCA Toys?
> > >
> > > I've collected a couple of utilites that have helped me during
> > > debugging some problems (
> > > http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/slaws/sample
> > > -s
> > > ca-toys/).
> > > For example this is the code I drop at the end of a test to print out
> > > the model hierarchy that was built:
> > >
> > >        // inspect the model
> > >        Field domainCompositeField = scaDomain.getClass
> > > ().getDeclaredField("domainComposite");
> > >        domainCompositeField.setAccessible(true);
> > >        Composite domainComposite = (Composite)
> > > domainCompositeField.get(scaDomain);
> > >
> > >        OutputStream os = new ByteArrayOutputStream();
> > >        PrintUtil printUtil = new PrintUtil(os);
> > >        printUtil.print(domainComposite);
> > >        System.out.println("Assembly \n " + os.toString());
> > >
> > > I'm sure people have much smarter utils than I that they use to make
> > > their lives easier. If you have tools are you prepared to share them?
> > >
> > > How about we create a module:
> > >
> > > java/sca/devtools
> > >
> > > or even
> > >
> > > java/devtools
> > >
> > > Simon
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> > >
> > >
> >
> >
> > --
> > Pete
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >
> >
>
>
> --
> Pete
>


-- 
Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: SCA Toys?

Posted by Pete Robbins <ro...@googlemail.com>.
I'm thinking this should go in cpp/sca/tools. Currently we have the
scagen tool in that folder but I've been meaning to move that to
cpp\sca\runtime\extensions\cpp\tools for some time now as it is really
part of the C++ language extension.

Cheers,

On 11/07/07, Brady Johnson <bj...@roguewave.com> wrote:
>
> I created a JIRA for this:
>        https://issues.apache.org/jira/browse/TUSCANY-1423
>
> I also uploaded a patch, so its ready for some kindly commiter to submit
> it.
>
> FYI, the -model option doesn't work yet, since its depending on
> functionality to be added with:
>        https://issues.apache.org/jira/browse/TUSCANY-1422
>
> Thanks
>
> --------------------
> Brady Johnson
> Lead Software Developer - HydraSCA
> Rogue Wave Software - brady.johnson@roguewave.com
>
>
> -----Original Message-----
> From: Pete Robbins [mailto:robbinspg@googlemail.com]
> Sent: Wednesday, July 11, 2007 2:00 PM
> To: tuscany-dev@ws.apache.org
> Subject: Re: SCA Toys?
>
> Nice!
>
> please attach a patch to a Jira and I'll test/commit it.
>
> Cheers,
>
> On 11/07/07, Brady Johnson <bj...@roguewave.com> wrote:
> >
> > I havent seen much posted about this lately.
> >
> > I have a "toy" for TuscanySCA C++ that will use the SCARuntime to load
>
> > a service and dump out pertinent information. Also, if there are any
> > failures, it will dump that to stderr as well.
> >
> > See below for a sample output with the CppBigBank service:
> >
> > After looking at the svn structure, maybe the best place for it would
> > be:
> >
> > cpp/sca/toys
> >
> > If anyone thinks this would be useful, I'll attach the code and
> > someone can submit it for me.
> >
> > Thanks
> >
> > --------------------
> > Brady Johnson
> > Lead Software Developer - HydraSCA
> > Rogue Wave Software - brady.johnson@roguewave.com
> >
> >
> > [bjohnson@pyramid4 bin]$ ./tuscanyServiceChecker -ir ${TUSCANY_SCACPP}
>
> > -sr ${TUSCANY_SCACPP}/samples/CppBigBank/deploy
> > Included composite: bigbank.app
> >        WSDL namespace: http://www.bigbank.com/AccountService
> >                PortType: AccountService
> >                        Operation Info:
> >                                OperationName:     getAccountReport
> >                                SOAP Action:
> > http://www.bigbank.com/AccountService/getAccountReport
> >                                Endpoint:
> > http://localhost:9090/axis2/services/bigbank.AccountManagementComponen
> > t/
> > AccountService
> >                                SOAP version:      0
> >                                Document Style:    1
> >                                Wrapped Style:     1
> >                                In Encoded Style:  0
> >                                Out Encoded Style: 0
> >                                InputMsgURI:
> > http://www.bigbank.com/AccountService
> >                                InputMsgName:
> > getAccountReportRequest
> >                                OutputMsgURI:
> > http://www.bigbank.com/AccountService
> >                                OutputMsgName:
> > getAccountReportResponse
> >                                Input Message Part:
> >                                         Name: getAccountReportRequest
> >                                         Type: getAccountReport
> >                                         URI:
> > http://www.bigbank.com/AccountService
> >                                Output Message Part:
> >                                         Name: getAccountReportResponse
> >                                         Type: getAccountReportResponse
> >                                         URI:
> > http://www.bigbank.com/AccountService
> >        WSDL namespace: http://www.webserviceX.NET/
> >                PortType: StockQuoteSoap
> >                        Operation Info:
> >                                OperationName:     GetQuote
> >                                SOAP Action:
> > http://www.webserviceX.NET/GetQuote
> >                                Endpoint:
> > http://www.webservicex.net/stockquote.asmx
> >                                SOAP version:      0
> >                                Document Style:    1
> >                                Wrapped Style:     1
> >                                In Encoded Style:  0
> >                                Out Encoded Style: 0
> >                                InputMsgURI:
> > http://www.webserviceX.NET/
> >                                InputMsgName:      GetQuoteSoapIn
> >                                OutputMsgURI:
> > http://www.webserviceX.NET/
> >                                OutputMsgName:     GetQuoteSoapOut
> >                                Input Message Part:
> >                                         Name: parameters
> >                                         Type: GetQuote
> >                                         URI:
> > http://www.webserviceX.NET/
> >                                Output Message Part:
> >                                         Name: parameters
> >                                         Type: GetQuoteResponse
> >                                         URI:
> > http://www.webserviceX.NET/
> >
> >
> > -----Original Message-----
> > From: Simon Laws [mailto:simonslaws@googlemail.com]
> > Sent: Thursday, June 21, 2007 10:48 AM
> > To: tuscany-dev
> > Subject: SCA Toys?
> >
> > I've collected a couple of utilites that have helped me during
> > debugging some problems (
> > http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/slaws/sample
> > -s
> > ca-toys/).
> > For example this is the code I drop at the end of a test to print out
> > the model hierarchy that was built:
> >
> >        // inspect the model
> >        Field domainCompositeField = scaDomain.getClass
> > ().getDeclaredField("domainComposite");
> >        domainCompositeField.setAccessible(true);
> >        Composite domainComposite = (Composite)
> > domainCompositeField.get(scaDomain);
> >
> >        OutputStream os = new ByteArrayOutputStream();
> >        PrintUtil printUtil = new PrintUtil(os);
> >        printUtil.print(domainComposite);
> >        System.out.println("Assembly \n " + os.toString());
> >
> > I'm sure people have much smarter utils than I that they use to make
> > their lives easier. If you have tools are you prepared to share them?
> >
> > How about we create a module:
> >
> > java/sca/devtools
> >
> > or even
> >
> > java/devtools
> >
> > Simon
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >
> >
>
>
> --
> Pete
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>


-- 
Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


RE: SCA Toys?

Posted by Brady Johnson <bj...@roguewave.com>.
I created a JIRA for this:
	https://issues.apache.org/jira/browse/TUSCANY-1423

I also uploaded a patch, so its ready for some kindly commiter to submit
it.

FYI, the -model option doesn't work yet, since its depending on
functionality to be added with:
	https://issues.apache.org/jira/browse/TUSCANY-1422

Thanks

--------------------
Brady Johnson
Lead Software Developer - HydraSCA
Rogue Wave Software - brady.johnson@roguewave.com
 

-----Original Message-----
From: Pete Robbins [mailto:robbinspg@googlemail.com] 
Sent: Wednesday, July 11, 2007 2:00 PM
To: tuscany-dev@ws.apache.org
Subject: Re: SCA Toys?

Nice!

please attach a patch to a Jira and I'll test/commit it.

Cheers,

On 11/07/07, Brady Johnson <bj...@roguewave.com> wrote:
>
> I havent seen much posted about this lately.
>
> I have a "toy" for TuscanySCA C++ that will use the SCARuntime to load

> a service and dump out pertinent information. Also, if there are any 
> failures, it will dump that to stderr as well.
>
> See below for a sample output with the CppBigBank service:
>
> After looking at the svn structure, maybe the best place for it would
> be:
>
> cpp/sca/toys
>
> If anyone thinks this would be useful, I'll attach the code and 
> someone can submit it for me.
>
> Thanks
>
> --------------------
> Brady Johnson
> Lead Software Developer - HydraSCA
> Rogue Wave Software - brady.johnson@roguewave.com
>
>
> [bjohnson@pyramid4 bin]$ ./tuscanyServiceChecker -ir ${TUSCANY_SCACPP}

> -sr ${TUSCANY_SCACPP}/samples/CppBigBank/deploy
> Included composite: bigbank.app
>        WSDL namespace: http://www.bigbank.com/AccountService
>                PortType: AccountService
>                        Operation Info:
>                                OperationName:     getAccountReport
>                                SOAP Action:
> http://www.bigbank.com/AccountService/getAccountReport
>                                Endpoint:
> http://localhost:9090/axis2/services/bigbank.AccountManagementComponen
> t/
> AccountService
>                                SOAP version:      0
>                                Document Style:    1
>                                Wrapped Style:     1
>                                In Encoded Style:  0
>                                Out Encoded Style: 0
>                                InputMsgURI:
> http://www.bigbank.com/AccountService
>                                InputMsgName:
> getAccountReportRequest
>                                OutputMsgURI:
> http://www.bigbank.com/AccountService
>                                OutputMsgName:
> getAccountReportResponse
>                                Input Message Part:
>                                         Name: getAccountReportRequest
>                                         Type: getAccountReport
>                                         URI:
> http://www.bigbank.com/AccountService
>                                Output Message Part:
>                                         Name: getAccountReportResponse
>                                         Type: getAccountReportResponse
>                                         URI:
> http://www.bigbank.com/AccountService
>        WSDL namespace: http://www.webserviceX.NET/
>                PortType: StockQuoteSoap
>                        Operation Info:
>                                OperationName:     GetQuote
>                                SOAP Action:
> http://www.webserviceX.NET/GetQuote
>                                Endpoint:
> http://www.webservicex.net/stockquote.asmx
>                                SOAP version:      0
>                                Document Style:    1
>                                Wrapped Style:     1
>                                In Encoded Style:  0
>                                Out Encoded Style: 0
>                                InputMsgURI:
> http://www.webserviceX.NET/
>                                InputMsgName:      GetQuoteSoapIn
>                                OutputMsgURI:
> http://www.webserviceX.NET/
>                                OutputMsgName:     GetQuoteSoapOut
>                                Input Message Part:
>                                         Name: parameters
>                                         Type: GetQuote
>                                         URI:
> http://www.webserviceX.NET/
>                                Output Message Part:
>                                         Name: parameters
>                                         Type: GetQuoteResponse
>                                         URI:
> http://www.webserviceX.NET/
>
>
> -----Original Message-----
> From: Simon Laws [mailto:simonslaws@googlemail.com]
> Sent: Thursday, June 21, 2007 10:48 AM
> To: tuscany-dev
> Subject: SCA Toys?
>
> I've collected a couple of utilites that have helped me during 
> debugging some problems ( 
> http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/slaws/sample
> -s
> ca-toys/).
> For example this is the code I drop at the end of a test to print out 
> the model hierarchy that was built:
>
>        // inspect the model
>        Field domainCompositeField = scaDomain.getClass 
> ().getDeclaredField("domainComposite");
>        domainCompositeField.setAccessible(true);
>        Composite domainComposite = (Composite) 
> domainCompositeField.get(scaDomain);
>
>        OutputStream os = new ByteArrayOutputStream();
>        PrintUtil printUtil = new PrintUtil(os);
>        printUtil.print(domainComposite);
>        System.out.println("Assembly \n " + os.toString());
>
> I'm sure people have much smarter utils than I that they use to make 
> their lives easier. If you have tools are you prepared to share them?
>
> How about we create a module:
>
> java/sca/devtools
>
> or even
>
> java/devtools
>
> Simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>


--
Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: SCA Toys?

Posted by Pete Robbins <ro...@googlemail.com>.
Nice!

please attach a patch to a Jira and I'll test/commit it.

Cheers,

On 11/07/07, Brady Johnson <bj...@roguewave.com> wrote:
>
> I havent seen much posted about this lately.
>
> I have a "toy" for TuscanySCA C++ that will use the SCARuntime to load a
> service and dump out pertinent information. Also, if there are any
> failures, it will dump that to stderr as well.
>
> See below for a sample output with the CppBigBank service:
>
> After looking at the svn structure, maybe the best place for it would
> be:
>
> cpp/sca/toys
>
> If anyone thinks this would be useful, I'll attach the code and someone
> can submit it for me.
>
> Thanks
>
> --------------------
> Brady Johnson
> Lead Software Developer - HydraSCA
> Rogue Wave Software - brady.johnson@roguewave.com
>
>
> [bjohnson@pyramid4 bin]$ ./tuscanyServiceChecker -ir ${TUSCANY_SCACPP}
> -sr ${TUSCANY_SCACPP}/samples/CppBigBank/deploy
> Included composite: bigbank.app
>        WSDL namespace: http://www.bigbank.com/AccountService
>                PortType: AccountService
>                        Operation Info:
>                                OperationName:     getAccountReport
>                                SOAP Action:
> http://www.bigbank.com/AccountService/getAccountReport
>                                Endpoint:
> http://localhost:9090/axis2/services/bigbank.AccountManagementComponent/
> AccountService
>                                SOAP version:      0
>                                Document Style:    1
>                                Wrapped Style:     1
>                                In Encoded Style:  0
>                                Out Encoded Style: 0
>                                InputMsgURI:
> http://www.bigbank.com/AccountService
>                                InputMsgName:
> getAccountReportRequest
>                                OutputMsgURI:
> http://www.bigbank.com/AccountService
>                                OutputMsgName:
> getAccountReportResponse
>                                Input Message Part:
>                                         Name: getAccountReportRequest
>                                         Type: getAccountReport
>                                         URI:
> http://www.bigbank.com/AccountService
>                                Output Message Part:
>                                         Name: getAccountReportResponse
>                                         Type: getAccountReportResponse
>                                         URI:
> http://www.bigbank.com/AccountService
>        WSDL namespace: http://www.webserviceX.NET/
>                PortType: StockQuoteSoap
>                        Operation Info:
>                                OperationName:     GetQuote
>                                SOAP Action:
> http://www.webserviceX.NET/GetQuote
>                                Endpoint:
> http://www.webservicex.net/stockquote.asmx
>                                SOAP version:      0
>                                Document Style:    1
>                                Wrapped Style:     1
>                                In Encoded Style:  0
>                                Out Encoded Style: 0
>                                InputMsgURI:
> http://www.webserviceX.NET/
>                                InputMsgName:      GetQuoteSoapIn
>                                OutputMsgURI:
> http://www.webserviceX.NET/
>                                OutputMsgName:     GetQuoteSoapOut
>                                Input Message Part:
>                                         Name: parameters
>                                         Type: GetQuote
>                                         URI:
> http://www.webserviceX.NET/
>                                Output Message Part:
>                                         Name: parameters
>                                         Type: GetQuoteResponse
>                                         URI:
> http://www.webserviceX.NET/
>
>
> -----Original Message-----
> From: Simon Laws [mailto:simonslaws@googlemail.com]
> Sent: Thursday, June 21, 2007 10:48 AM
> To: tuscany-dev
> Subject: SCA Toys?
>
> I've collected a couple of utilites that have helped me during debugging
> some problems (
> http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/slaws/sample-s
> ca-toys/).
> For example this is the code I drop at the end of a test to print out
> the model hierarchy that was built:
>
>        // inspect the model
>        Field domainCompositeField = scaDomain.getClass
> ().getDeclaredField("domainComposite");
>        domainCompositeField.setAccessible(true);
>        Composite domainComposite = (Composite)
> domainCompositeField.get(scaDomain);
>
>        OutputStream os = new ByteArrayOutputStream();
>        PrintUtil printUtil = new PrintUtil(os);
>        printUtil.print(domainComposite);
>        System.out.println("Assembly \n " + os.toString());
>
> I'm sure people have much smarter utils than I that they use to make
> their lives easier. If you have tools are you prepared to share them?
>
> How about we create a module:
>
> java/sca/devtools
>
> or even
>
> java/devtools
>
> Simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>


-- 
Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


RE: SCA Toys?

Posted by Brady Johnson <bj...@roguewave.com>.
I can indent that easy enough.

Also, I can add some extra command line flags:
	-v verbose output, displays everything
	-model display the model hierarchy, composites, components,
services, etc
	-wsdl display the WSDL info: namespaces, PortTypes, Operations,
Messages, etc

By default it could just validate and not display anything.

I made it so that there is a TuscanyServiceChecker class that can be
used by GUIs, etc.

Anything else?

--------------------
Brady Johnson
Lead Software Developer - HydraSCA
Rogue Wave Software - brady.johnson@roguewave.com


-----Original Message-----
From: Mike Micucci [mailto:mmicucci@quovadx.com] 
Sent: Wednesday, July 11, 2007 1:23 PM
To: tuscany-dev@ws.apache.org
Subject: RE: SCA Toys?

This looks pretty cool, Brady.  I would maybe indent the operation info
since multiple operations can be loaded under one port type?

I think the location you specified seems fine to me.

Thanks!

-- Michael Micucci
-- Project Team Lead - HydraSCA Agent Core Project
-- Roguewave Software - micucci@roguewave.com
 

-----Original Message-----
From: Brady Johnson [mailto:bjohnson@roguewave.com]
Sent: Wednesday, July 11, 2007 12:13 PM
To: tuscany-dev@ws.apache.org; tuscany-user@ws.apache.org
Subject: RE: SCA Toys?

 
I havent seen much posted about this lately.

I have a "toy" for TuscanySCA C++ that will use the SCARuntime to load a
service and dump out pertinent information. Also, if there are any
failures, it will dump that to stderr as well.

See below for a sample output with the CppBigBank service:

After looking at the svn structure, maybe the best place for it would
be:

cpp/sca/toys

If anyone thinks this would be useful, I'll attach the code and someone
can submit it for me.

Thanks

--------------------
Brady Johnson
Lead Software Developer - HydraSCA
Rogue Wave Software - brady.johnson@roguewave.com


[bjohnson@pyramid4 bin]$ ./tuscanyServiceChecker -ir ${TUSCANY_SCACPP}
-sr ${TUSCANY_SCACPP}/samples/CppBigBank/deploy
Included composite: bigbank.app
        WSDL namespace: http://www.bigbank.com/AccountService
                PortType: AccountService
                        Operation Info:
                                OperationName:     getAccountReport
                                SOAP Action:
http://www.bigbank.com/AccountService/getAccountReport
                                Endpoint:
http://localhost:9090/axis2/services/bigbank.AccountManagementComponent/
AccountService
                                SOAP version:      0
                                Document Style:    1
                                Wrapped Style:     1
                                In Encoded Style:  0
                                Out Encoded Style: 0
                                InputMsgURI:
http://www.bigbank.com/AccountService
                                InputMsgName:
getAccountReportRequest
                                OutputMsgURI:
http://www.bigbank.com/AccountService
                                OutputMsgName:
getAccountReportResponse
                                Input Message Part:
                                         Name: getAccountReportRequest
                                         Type: getAccountReport
                                         URI:
http://www.bigbank.com/AccountService
                                Output Message Part:
                                         Name: getAccountReportResponse
                                         Type: getAccountReportResponse
                                         URI:
http://www.bigbank.com/AccountService
        WSDL namespace: http://www.webserviceX.NET/
                PortType: StockQuoteSoap
                        Operation Info:
                                OperationName:     GetQuote
                                SOAP Action:
http://www.webserviceX.NET/GetQuote
                                Endpoint:
http://www.webservicex.net/stockquote.asmx
                                SOAP version:      0
                                Document Style:    1
                                Wrapped Style:     1
                                In Encoded Style:  0
                                Out Encoded Style: 0
                                InputMsgURI:
http://www.webserviceX.NET/
                                InputMsgName:      GetQuoteSoapIn
                                OutputMsgURI:
http://www.webserviceX.NET/
                                OutputMsgName:     GetQuoteSoapOut
                                Input Message Part:
                                         Name: parameters
                                         Type: GetQuote
                                         URI:
http://www.webserviceX.NET/
                                Output Message Part:
                                         Name: parameters
                                         Type: GetQuoteResponse
                                         URI:
http://www.webserviceX.NET/


-----Original Message-----
From: Simon Laws [mailto:simonslaws@googlemail.com]
Sent: Thursday, June 21, 2007 10:48 AM
To: tuscany-dev
Subject: SCA Toys?

I've collected a couple of utilites that have helped me during debugging
some problems (
http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/slaws/sample-s
ca-toys/).
For example this is the code I drop at the end of a test to print out
the model hierarchy that was built:

        // inspect the model
        Field domainCompositeField = scaDomain.getClass
().getDeclaredField("domainComposite");
        domainCompositeField.setAccessible(true);
        Composite domainComposite = (Composite)
domainCompositeField.get(scaDomain);

        OutputStream os = new ByteArrayOutputStream();
        PrintUtil printUtil = new PrintUtil(os);
        printUtil.print(domainComposite);
        System.out.println("Assembly \n " + os.toString());

I'm sure people have much smarter utils than I that they use to make
their lives easier. If you have tools are you prepared to share them?

How about we create a module:

java/sca/devtools

or even

java/devtools

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


RE: SCA Toys?

Posted by "Justin Thomas (Contractor)" <jt...@quovadx.com>.
I think this would be very useful.  Could you modify it to also print
out the model heirarchy?

Thanks,
Justin Thomas
Software Developer - HydraSCA
Rogue Wave Software - justin.thomas@roguewave.com

-----Original Message-----
From: Brady Johnson [mailto:bjohnson@roguewave.com] 
Sent: Wednesday, July 11, 2007 12:13 PM
To: tuscany-dev@ws.apache.org; tuscany-user@ws.apache.org
Subject: RE: SCA Toys?

 
I havent seen much posted about this lately.

I have a "toy" for TuscanySCA C++ that will use the SCARuntime to load a
service and dump out pertinent information. Also, if there are any
failures, it will dump that to stderr as well.

See below for a sample output with the CppBigBank service:

After looking at the svn structure, maybe the best place for it would
be:

cpp/sca/toys

If anyone thinks this would be useful, I'll attach the code and someone
can submit it for me.

Thanks

--------------------
Brady Johnson
Lead Software Developer - HydraSCA
Rogue Wave Software - brady.johnson@roguewave.com


[bjohnson@pyramid4 bin]$ ./tuscanyServiceChecker -ir ${TUSCANY_SCACPP}
-sr ${TUSCANY_SCACPP}/samples/CppBigBank/deploy
Included composite: bigbank.app
        WSDL namespace: http://www.bigbank.com/AccountService
                PortType: AccountService
                        Operation Info:
                                OperationName:     getAccountReport
                                SOAP Action:
http://www.bigbank.com/AccountService/getAccountReport
                                Endpoint:
http://localhost:9090/axis2/services/bigbank.AccountManagementComponent/
AccountService
                                SOAP version:      0
                                Document Style:    1
                                Wrapped Style:     1
                                In Encoded Style:  0
                                Out Encoded Style: 0
                                InputMsgURI:
http://www.bigbank.com/AccountService
                                InputMsgName:
getAccountReportRequest
                                OutputMsgURI:
http://www.bigbank.com/AccountService
                                OutputMsgName:
getAccountReportResponse
                                Input Message Part:
                                         Name: getAccountReportRequest
                                         Type: getAccountReport
                                         URI:
http://www.bigbank.com/AccountService
                                Output Message Part:
                                         Name: getAccountReportResponse
                                         Type: getAccountReportResponse
                                         URI:
http://www.bigbank.com/AccountService
        WSDL namespace: http://www.webserviceX.NET/
                PortType: StockQuoteSoap
                        Operation Info:
                                OperationName:     GetQuote
                                SOAP Action:
http://www.webserviceX.NET/GetQuote
                                Endpoint:
http://www.webservicex.net/stockquote.asmx
                                SOAP version:      0
                                Document Style:    1
                                Wrapped Style:     1
                                In Encoded Style:  0
                                Out Encoded Style: 0
                                InputMsgURI:
http://www.webserviceX.NET/
                                InputMsgName:      GetQuoteSoapIn
                                OutputMsgURI:
http://www.webserviceX.NET/
                                OutputMsgName:     GetQuoteSoapOut
                                Input Message Part:
                                         Name: parameters
                                         Type: GetQuote
                                         URI:
http://www.webserviceX.NET/
                                Output Message Part:
                                         Name: parameters
                                         Type: GetQuoteResponse
                                         URI:
http://www.webserviceX.NET/


-----Original Message-----
From: Simon Laws [mailto:simonslaws@googlemail.com]
Sent: Thursday, June 21, 2007 10:48 AM
To: tuscany-dev
Subject: SCA Toys?

I've collected a couple of utilites that have helped me during debugging
some problems (
http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/slaws/sample-s
ca-toys/).
For example this is the code I drop at the end of a test to print out
the model hierarchy that was built:

        // inspect the model
        Field domainCompositeField = scaDomain.getClass
().getDeclaredField("domainComposite");
        domainCompositeField.setAccessible(true);
        Composite domainComposite = (Composite)
domainCompositeField.get(scaDomain);

        OutputStream os = new ByteArrayOutputStream();
        PrintUtil printUtil = new PrintUtil(os);
        printUtil.print(domainComposite);
        System.out.println("Assembly \n " + os.toString());

I'm sure people have much smarter utils than I that they use to make
their lives easier. If you have tools are you prepared to share them?

How about we create a module:

java/sca/devtools

or even

java/devtools

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


RE: SCA Toys?

Posted by Mike Micucci <mm...@quovadx.com>.
This looks pretty cool, Brady.  I would maybe indent the operation info
since multiple operations can be loaded under one port type?

I think the location you specified seems fine to me.

Thanks!

-- Michael Micucci
-- Project Team Lead - HydraSCA Agent Core Project
-- Roguewave Software - micucci@roguewave.com
 

-----Original Message-----
From: Brady Johnson [mailto:bjohnson@roguewave.com] 
Sent: Wednesday, July 11, 2007 12:13 PM
To: tuscany-dev@ws.apache.org; tuscany-user@ws.apache.org
Subject: RE: SCA Toys?

 
I havent seen much posted about this lately.

I have a "toy" for TuscanySCA C++ that will use the SCARuntime to load a
service and dump out pertinent information. Also, if there are any
failures, it will dump that to stderr as well.

See below for a sample output with the CppBigBank service:

After looking at the svn structure, maybe the best place for it would
be:

cpp/sca/toys

If anyone thinks this would be useful, I'll attach the code and someone
can submit it for me.

Thanks

--------------------
Brady Johnson
Lead Software Developer - HydraSCA
Rogue Wave Software - brady.johnson@roguewave.com


[bjohnson@pyramid4 bin]$ ./tuscanyServiceChecker -ir ${TUSCANY_SCACPP}
-sr ${TUSCANY_SCACPP}/samples/CppBigBank/deploy
Included composite: bigbank.app
        WSDL namespace: http://www.bigbank.com/AccountService
                PortType: AccountService
                        Operation Info:
                                OperationName:     getAccountReport
                                SOAP Action:
http://www.bigbank.com/AccountService/getAccountReport
                                Endpoint:
http://localhost:9090/axis2/services/bigbank.AccountManagementComponent/
AccountService
                                SOAP version:      0
                                Document Style:    1
                                Wrapped Style:     1
                                In Encoded Style:  0
                                Out Encoded Style: 0
                                InputMsgURI:
http://www.bigbank.com/AccountService
                                InputMsgName:
getAccountReportRequest
                                OutputMsgURI:
http://www.bigbank.com/AccountService
                                OutputMsgName:
getAccountReportResponse
                                Input Message Part:
                                         Name: getAccountReportRequest
                                         Type: getAccountReport
                                         URI:
http://www.bigbank.com/AccountService
                                Output Message Part:
                                         Name: getAccountReportResponse
                                         Type: getAccountReportResponse
                                         URI:
http://www.bigbank.com/AccountService
        WSDL namespace: http://www.webserviceX.NET/
                PortType: StockQuoteSoap
                        Operation Info:
                                OperationName:     GetQuote
                                SOAP Action:
http://www.webserviceX.NET/GetQuote
                                Endpoint:
http://www.webservicex.net/stockquote.asmx
                                SOAP version:      0
                                Document Style:    1
                                Wrapped Style:     1
                                In Encoded Style:  0
                                Out Encoded Style: 0
                                InputMsgURI:
http://www.webserviceX.NET/
                                InputMsgName:      GetQuoteSoapIn
                                OutputMsgURI:
http://www.webserviceX.NET/
                                OutputMsgName:     GetQuoteSoapOut
                                Input Message Part:
                                         Name: parameters
                                         Type: GetQuote
                                         URI:
http://www.webserviceX.NET/
                                Output Message Part:
                                         Name: parameters
                                         Type: GetQuoteResponse
                                         URI:
http://www.webserviceX.NET/


-----Original Message-----
From: Simon Laws [mailto:simonslaws@googlemail.com] 
Sent: Thursday, June 21, 2007 10:48 AM
To: tuscany-dev
Subject: SCA Toys?

I've collected a couple of utilites that have helped me during debugging
some problems (
http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/slaws/sample-s
ca-toys/).
For example this is the code I drop at the end of a test to print out
the model hierarchy that was built:

        // inspect the model
        Field domainCompositeField = scaDomain.getClass
().getDeclaredField("domainComposite");
        domainCompositeField.setAccessible(true);
        Composite domainComposite = (Composite)
domainCompositeField.get(scaDomain);

        OutputStream os = new ByteArrayOutputStream();
        PrintUtil printUtil = new PrintUtil(os);
        printUtil.print(domainComposite);
        System.out.println("Assembly \n " + os.toString());

I'm sure people have much smarter utils than I that they use to make
their lives easier. If you have tools are you prepared to share them?

How about we create a module:

java/sca/devtools

or even

java/devtools

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


RE: SCA Toys?

Posted by "Justin Thomas (Contractor)" <jt...@quovadx.com>.
I think this would be very useful.  Could you modify it to also print
out the model heirarchy?

Thanks,
Justin Thomas
Software Developer - HydraSCA
Rogue Wave Software - justin.thomas@roguewave.com

-----Original Message-----
From: Brady Johnson [mailto:bjohnson@roguewave.com] 
Sent: Wednesday, July 11, 2007 12:13 PM
To: tuscany-dev@ws.apache.org; tuscany-user@ws.apache.org
Subject: RE: SCA Toys?

 
I havent seen much posted about this lately.

I have a "toy" for TuscanySCA C++ that will use the SCARuntime to load a
service and dump out pertinent information. Also, if there are any
failures, it will dump that to stderr as well.

See below for a sample output with the CppBigBank service:

After looking at the svn structure, maybe the best place for it would
be:

cpp/sca/toys

If anyone thinks this would be useful, I'll attach the code and someone
can submit it for me.

Thanks

--------------------
Brady Johnson
Lead Software Developer - HydraSCA
Rogue Wave Software - brady.johnson@roguewave.com


[bjohnson@pyramid4 bin]$ ./tuscanyServiceChecker -ir ${TUSCANY_SCACPP}
-sr ${TUSCANY_SCACPP}/samples/CppBigBank/deploy
Included composite: bigbank.app
        WSDL namespace: http://www.bigbank.com/AccountService
                PortType: AccountService
                        Operation Info:
                                OperationName:     getAccountReport
                                SOAP Action:
http://www.bigbank.com/AccountService/getAccountReport
                                Endpoint:
http://localhost:9090/axis2/services/bigbank.AccountManagementComponent/
AccountService
                                SOAP version:      0
                                Document Style:    1
                                Wrapped Style:     1
                                In Encoded Style:  0
                                Out Encoded Style: 0
                                InputMsgURI:
http://www.bigbank.com/AccountService
                                InputMsgName:
getAccountReportRequest
                                OutputMsgURI:
http://www.bigbank.com/AccountService
                                OutputMsgName:
getAccountReportResponse
                                Input Message Part:
                                         Name: getAccountReportRequest
                                         Type: getAccountReport
                                         URI:
http://www.bigbank.com/AccountService
                                Output Message Part:
                                         Name: getAccountReportResponse
                                         Type: getAccountReportResponse
                                         URI:
http://www.bigbank.com/AccountService
        WSDL namespace: http://www.webserviceX.NET/
                PortType: StockQuoteSoap
                        Operation Info:
                                OperationName:     GetQuote
                                SOAP Action:
http://www.webserviceX.NET/GetQuote
                                Endpoint:
http://www.webservicex.net/stockquote.asmx
                                SOAP version:      0
                                Document Style:    1
                                Wrapped Style:     1
                                In Encoded Style:  0
                                Out Encoded Style: 0
                                InputMsgURI:
http://www.webserviceX.NET/
                                InputMsgName:      GetQuoteSoapIn
                                OutputMsgURI:
http://www.webserviceX.NET/
                                OutputMsgName:     GetQuoteSoapOut
                                Input Message Part:
                                         Name: parameters
                                         Type: GetQuote
                                         URI:
http://www.webserviceX.NET/
                                Output Message Part:
                                         Name: parameters
                                         Type: GetQuoteResponse
                                         URI:
http://www.webserviceX.NET/


-----Original Message-----
From: Simon Laws [mailto:simonslaws@googlemail.com]
Sent: Thursday, June 21, 2007 10:48 AM
To: tuscany-dev
Subject: SCA Toys?

I've collected a couple of utilites that have helped me during debugging
some problems (
http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/slaws/sample-s
ca-toys/).
For example this is the code I drop at the end of a test to print out
the model hierarchy that was built:

        // inspect the model
        Field domainCompositeField = scaDomain.getClass
().getDeclaredField("domainComposite");
        domainCompositeField.setAccessible(true);
        Composite domainComposite = (Composite)
domainCompositeField.get(scaDomain);

        OutputStream os = new ByteArrayOutputStream();
        PrintUtil printUtil = new PrintUtil(os);
        printUtil.print(domainComposite);
        System.out.println("Assembly \n " + os.toString());

I'm sure people have much smarter utils than I that they use to make
their lives easier. If you have tools are you prepared to share them?

How about we create a module:

java/sca/devtools

or even

java/devtools

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org