You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Simon Laws <si...@googlemail.com> on 2007/06/21 18:48:27 UTC
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-sca-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
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
RE: SCA Toys?
Posted by Brady Johnson <bj...@roguewave.com>.
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 Brady Johnson <bj...@roguewave.com>.
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-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org
Re: SCA Toys?
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Simon Laws wrote:
> 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-sca-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
>
+1 looks like a good idea to me.
I would prefer java/sca/toys, and from the link you gave it looks like
toys was your original name as well, as dev tools have a specific
meaning and print utils, debug helpers, validation libraries, data
binding transformers etc. do not seem to belong to that category, but
I'll be ok with tools if this is what others prefer.
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Validating SCA assembly artifacts, was: SCA Toys?
Posted by Jean-Sebastien Delfino <js...@apache.org>.
[snip]
Luciano Resende wrote:
> I like the idea of a .composite file validator, would that be an
> eclipse plugin ? Also, I might start a new thread on this, but how do
> we handle extension implementation validations (e.g
> implementation.data defining some other elements for the composite
> file ? )
I like it too. A good validation tool is key to a good application
development experience. I would suggest a layered, and staged, approach:
1. Validator classes that only depend on the model classes, easy for
people to embed in their environment
For the command line + notepad / vi / emacs... app developers:
2. a layer integrating the Validator with the Tuscany core and its
reporting capabilities
3. a layer providing integration with Ant and/or Maven, or just a
command line validation tool
For the Eclipse app developers:
4. a plugin providing basic validation capability, maybe also leveraging
the EMF validation framework
5. plugins for the validation of individual SCA extensions
6. maybe a plugin to integrate with the WTP validation framework?
7. UI integration, integration with XML source and Eclipse visual
diagram editor frameworks
So there's a long way to go before we can see a red X on the right SCA
component in an SCA assembly diagram tool when there's an error and
proposals for fixes in a tooltip... I'd suggest to start with step 1. :)
To handle validation of SCA assembly extensions, we'll need an
extensible Validator :)
How about defining a peer interface to ArfifactProcessor,
ArtifactValidator, with a validate method, and follow a pattern similar
to our ArtifactProcessorExtensionPoint with an
ArtifactValidatorExtensionPoint?
--
Jean-Sebastien
---------------------------------------------------------------------
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 Luciano Resende <lu...@gmail.com>.
I like the idea of a .composite file validator, would that be an
eclipse plugin ? Also, I might start a new thread on this, but how do
we handle extension implementation validations (e.g
implementation.data defining some other elements for the composite
file ? )
+1 for sca/tools/c++ and sca/tools/java
On 6/21/07, Brady Johnson <bj...@roguewave.com> wrote:
>
> These sound like very useful tools.
>
> What about for the C++ side? What about making the modules something
> like sca/tools/c++ and sca/tools/java?
>
> Brady
>
> -----Original Message-----
> From: Venkata Krishnan [mailto:for.svkrish@gmail.com]
> Sent: Thursday, June 21, 2007 11:13 AM
> To: tuscany-dev@ws.apache.org
> Subject: Re: SCA Toys?
>
> This would be good to get users one step forward with respect to using
> SCA.
> A good tool to have would be one that validates a composite assembly -
> against the xsds and then for overall consistency. I know we do quite a
> bit of the latter as part of the artifact processing but wonder if it
> would go an extra mile if abstracted as a tool.
>
> I also liked the transformers that we have in the databinding modules
> today. It would be good to have them as individual tools as well.
>
> I'd go for java/tools, atleast to start with.
>
> - Venkat
>
> On 6/21/07, Simon Laws <si...@googlemail.com> wrote:
> >
> > 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
> > -sca-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
>
>
--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/
---------------------------------------------------------------------
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>.
These sound like very useful tools.
What about for the C++ side? What about making the modules something
like sca/tools/c++ and sca/tools/java?
Brady
-----Original Message-----
From: Venkata Krishnan [mailto:for.svkrish@gmail.com]
Sent: Thursday, June 21, 2007 11:13 AM
To: tuscany-dev@ws.apache.org
Subject: Re: SCA Toys?
This would be good to get users one step forward with respect to using
SCA.
A good tool to have would be one that validates a composite assembly -
against the xsds and then for overall consistency. I know we do quite a
bit of the latter as part of the artifact processing but wonder if it
would go an extra mile if abstracted as a tool.
I also liked the transformers that we have in the databinding modules
today. It would be good to have them as individual tools as well.
I'd go for java/tools, atleast to start with.
- Venkat
On 6/21/07, Simon Laws <si...@googlemail.com> wrote:
>
> 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
> -sca-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 6/21/07, Venkata Krishnan <fo...@gmail.com> wrote:
>
> This would be good to get users one step forward with respect to using
> SCA.
> A good tool to have would be one that validates a composite assembly -
> against the xsds and then for overall consistency. I know we do quite a
> bit
> of the latter as part of the artifact processing but wonder if it would go
> an extra mile if abstracted as a tool.
>
> I also liked the transformers that we have in the databinding modules
> today. It would be good to have them as individual tools as well.
>
> I'd go for java/tools, atleast to start with.
>
> - Venkat
>
> On 6/21/07, Simon Laws <si...@googlemail.com> wrote:
> >
> > 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-sca-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
> >
>
Venkat , you make a very good point. I meant to cross posted to the users
list also and didn't. I expect there are thoughts about what might be useful
or even some contributions? Have copied this note to dev and users.
Simon
Re: SCA Toys?
Posted by Simon Laws <si...@googlemail.com>.
On 6/21/07, Venkata Krishnan <fo...@gmail.com> wrote:
>
> This would be good to get users one step forward with respect to using
> SCA.
> A good tool to have would be one that validates a composite assembly -
> against the xsds and then for overall consistency. I know we do quite a
> bit
> of the latter as part of the artifact processing but wonder if it would go
> an extra mile if abstracted as a tool.
>
> I also liked the transformers that we have in the databinding modules
> today. It would be good to have them as individual tools as well.
>
> I'd go for java/tools, atleast to start with.
>
> - Venkat
>
> On 6/21/07, Simon Laws <si...@googlemail.com> wrote:
> >
> > 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-sca-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
> >
>
Venkat , you make a very good point. I meant to cross posted to the users
list also and didn't. I expect there are thoughts about what might be useful
or even some contributions? Have copied this note to dev and users.
Simon
Re: SCA Toys?
Posted by Venkata Krishnan <fo...@gmail.com>.
This would be good to get users one step forward with respect to using SCA.
A good tool to have would be one that validates a composite assembly -
against the xsds and then for overall consistency. I know we do quite a bit
of the latter as part of the artifact processing but wonder if it would go
an extra mile if abstracted as a tool.
I also liked the transformers that we have in the databinding modules
today. It would be good to have them as individual tools as well.
I'd go for java/tools, atleast to start with.
- Venkat
On 6/21/07, Simon Laws <si...@googlemail.com> wrote:
>
> 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-sca-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
>