Andy Barky

Greenhorn
+ Follow
since Sep 17, 2005
Merit badge: grant badges
For More
US
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Andy Barky

Luis,

Here is the information page http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=233

I guess the page information says that you need mike to ask questions, So I guess you need to interact.

Post your experience one you take it.

- AB
Hello Friends,

Good Day !!

I am preparing for above mentioned exam one by one. One thing I want to mention is, Since oracle made the course mandatory, Many of the courses are not scheduled to be like classroom training. LVC is one option to take but many a times, since mostly we all are working doesn't match the times available for us. One can't take the course that is during the office hours OR wee hours like 8.30 PM to 4 AM. I don't if the course is something can be paused for and resumed at later time. I didn't see that information though. One more observation is that really costly courses are available in classroom (like courses with 3500$) but little less costly (like 2100-2400$) are not at all available. I have been looking for OOAD with UML course since last one year and there have been no scheduling at all. Is it like a oracle business strategy for money making policy?

I am so confused. I don't know what to do other than taking a LVC probably during wee hours. Any suggestions?

Thanks
Thanks so much for those references. I found out that objectsbydesign.com is also good site for reference.

Thanks again,

- BarkyA
Ranchers,

Can anybody suggest me good book for OOAD? I am pursuing the OCM (SCEA formerly) so I need to study OOAD as well. I know UML 2 and have cleared the OCUP certifications as well. So need just few book suggestions.

When I looked at the FAQ page, they mainly talk about UML and very few though old books talk something related to OOAD.

Thanks for help,

- Barkya
Hi ranchers,

I passed OMG-OCUP-200 yesterday with 89% or 62/70 correct score. I have extensively studied on

1. UML Distilled by Martin Fowler (third edition)
2. UML2 Certification guide by Tim Weilkiens

Overall preparation time : about 22 days

I only missed on 8 questions, I am going to find out where I went wrong.

Thanks ranchers...

SCJP, SCWCD/OCPWCD, OMG-OCUP-100, OMG-OCUP-200
Hi there Ranchers...

I hope you all are doing good in web services....But I got a serious problem. I have researched many good pages and solutions for many many hours..nothing worked. So I am posting my problem here. Please, anybody can highlight any points or anything which might be helpful to me, Please do not hesitate to ask and post...Thanks in advance.

here is my WSDL file which is generated from MyEclipse 7.5 on windows 7 and related XSD also.
----------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3-hudson-390-. -->
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://services.drv.com/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MainService" targetNamespace="http://services.drv.com/">
<types>
<xsd:schema>
<xsd:import namespace="http://services.drv.com/" schemaLocation="MainService_schema1.xsd"/>
</xsd:schema>
</types>
<message name="multiplicator">
<part element="tns:multiplicator" name="parameters"/>
</message>
<message name="multiplicatorResponse">
<part element="tns:multiplicatorResponse" name="parameters"/>
</message>
<portType name="MainDelegate">
<operation name="multiplicator">
<input message="tns:multiplicator"/>
<output message="tns:multiplicatorResponse"/>
</operation>
</portType>
<binding name="MainPortBinding" type="tns:MainDelegate">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="multiplicator">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="MainService">
<port binding="tns:MainPortBinding" name="MainPort">
<soap:address location="http://localhost:8080/DvServices/MainPort"/>
</port>
</service>
</definitions>


XSD as below:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://services.drv.com/" targetNamespace="http://services.drv.com/" version="1.0">

<xs:element name="multiplicator" type="tns:multiplicator"/>

<xs:element name="multiplicatorResponse" type="tns:multiplicatorResponse"/>

<xs:complexType name="multiplicator">
<xs:sequence>
<xs:element name="arg0" type="xs:int"/>
<xs:element name="arg1" type="xs:int"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="multiplicatorResponse">
<xs:sequence>
<xs:element name="return" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------

I am getting big fat errors(2) as below:
The part'parameters' has an invalid value 'multiplicator' defined for its element. Element Declarations must refer to valid values defined in a schema.' line 8 column 57
The part'parameters' has an invalid value 'multiplicatorResponse' defined for its element. Element Declarations must refer to valid values defined in a schema.' line 11 column 65


I tried deleting all files and regenerating them again with modification of code, deleting rest of the code etc etc. Restarting the server at least 50 times to check what is going wrong. Nothing worked. I will really appreciate if somebody can help me.

Thanks again

Regards
12 years ago
Hi Folks,

howdy?

I got a problem...I am using MyEclipse 7.5

I am trying to generate the web service client from a secure web service. When try to do that the WSDL validation error occurs. When i generate client from the same web service under non-secure URL then everything works just fine. The error that i get is

WS-I: A problem occurred while running the WS-I WSDL conformance check: org.eclipse.wst.wsi.internal.analyzer. WSIAnalyzer Exception: The conformance validation failed. Nested exception is: java.lang.NullPointerException. The WSDLAnalyzer was unable to validate the given WSDL file.

Can somebody help me please? Is there any special plug-in/configuration that need to have to be successful?

Please suggest..

Thank you ranchers...

- AB
12 years ago
Hi Folks,

howdy?

I got a problem...I am using MyEclipse 7.5

I am trying to generate the web service client from a secure web service. When try to do that the WSDL validation error occurs. When i generate client from the same web service under non-secure URL then everything works just fine. The error that i get is

WS-I: A problem occurred while running the WS-I WSDL conformance check: org.eclipse.wst.wsi.internal.analyzer. WSIAnalyzer Exception: The conformance validation failed. Nested exception is: java.lang.NullPointerException. The WSDLAnalyzer was unable to validate the given WSDL file.

Can somebody help me please? Is there any special plug-in/configuration that need to have to be successful?

Please suggest..

Thank you ranchers...

- AB

Hi ranchers,

I am developing the web service with bottom up approach.

Here is my main class method signature
public MPWResponse updateAccount(String userId, String buyer_Id, int prog_Id, String token, String fName, String lName, String zip, String email, String status, boolean registered)

and below is my WSDL entry
<types>
<xsd:schema>
<xsd:import namespace="http://services.mpw.com/" schemaLocation="MainService_schema1.xsd"/>
</xsd:schema>
</types>
<message name="updateAccount">
<part element="tns:updateAccount" name="parameters"/>
</message>
<message name="updateAccountResponse">
<part element="tns:updateAccountResponse" name="parameters"/>
</message>

and below is my XSD entry
<xs:element name="updateAccount" type="tns:updateAccount"/>

<xs:element name="updateAccountResponse" type="tns:updateAccountResponse"/>

and

<xs:complexType name="updateAccount">
<xs:sequence>
<xs:element minOccurs="0" name="arg0" type="xs:string"/>
<xs:element minOccurs="0" name="arg1" type="xs:string"/>
<xs:element name="arg2" type="xs:int"/>
<xs:element minOccurs="0" name="arg3" type="xs:string"/>
<xs:element minOccurs="0" name="arg4" type="xs:string"/>
<xs:element minOccurs="0" name="arg5" type="xs:string"/>
<xs:element minOccurs="0" name="arg6" type="xs:string"/>
<xs:element minOccurs="0" name="arg7" type="xs:string"/>
<xs:element minOccurs="0" name="arg8" type="xs:string"/>
<xs:element name="arg9" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>

I am trying to print userId instead of arg0 in XSD. This name parameter has only "arg0" and so on in XSD. Everytime, I generate the WSDL and XSD automatically, It overwrites. I am using the eclipse and windows. Does anybody have any idea how this can be achieved?

Thanks for help in advance,

Regards

- WS rookie
13 years ago
ok William,

I did get your point. May be there is no reason to send arraylist to client ..just because old legacy clients won't understand new datatypes etc etc..

It was definitely a good point to convert arraylist into array and send to WS client.

But there is one more solution which is more simple than this. I am not talking abt old legacy technologies here. Since I do not have any of them...

I created a custom object like a wrapper and passed this custom object to WS client. Now all they have to is, exact arraylist from this custom object and use arraylist for exacting data from value object that was embedded in that....isn't that a perfect solution to quickly get around the problem? May be this is not a hard core techie solution but it did solve my problem...

what ya say?

- AB

13 years ago
Hi Friends...

I am again stuck at the problem with web services.

I want to return an arraylist containing simple java beans that holds business data from webservice. I am able to populate the arrayList but while returning the arraylist JAXB throws exception like below:

2011-02-10 17:17:30,699 ERROR [STDERR] Feb 10, 2011 5:17:30 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate doGet
SEVERE: caught throwable
javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: class com.drw.services.vo.DbValsVO nor any of its super class is known to this context.]
at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:322)
at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: class com.drw.services.vo.DbValsVO nor any of its super class is known to this context.]
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:282)
at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:100)
at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:141)
at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:315)
... 31 more


I tried google for solutions but seems nothing is working, specially like @xmlseealso ...

Can anybody throw a light how it can be done?

Thanks guyz

- Andy
13 years ago
Hi Naren,

Yes, the problem was with JAX-RPC 1.1 and not JAX-WS 2.1. Sorry for confusion.

Yep, After a little thought I guesses it the same that as you said wrapping array list was a problem.

Thanks a ton for these inputs and your time.

- AB
13 years ago
@Naren:

I got the problem. In the main class, which is treated as web service implementation class, returns the arraylist is essentially also output from calling webservice. According to JAX-WS 2.1 and JAX-RPC 1.1 standards arraylist is not allowed as return type. So I modified the main class to return some customized class that contains arraylist that previously wished to return. Now this problem is solved but I still remained with one issue...(if somebody can explain) ...If the problem was at the returning arraylist, why the error was thrown at the last line where value object is being added to the arraylist?

@Ulf: Thanks for chipping in some ideas and your time.

Thanks Naren.

- AB
13 years ago
@ulf:I am using JAX-WS 2.1. Can you Please. explain me what you mean by using same version on both sides? Here is what I do. I have developer some java classes and then using bottom up approach, I created JAX-WS web service to quickly cater the requirement. I am using myeclipse 7.X version for all this and I have an option to run the web service explorer and test the web service locally. So I didn't create any of the client.

@Naren: Yes, I am using JAX-WS 2.1 I tried generics also, the same way you have mentioned. The first thing, I did was, -recreated web service with bottom up apprach in myEclipse 7.X version. I have not created any client as yet as I can test this webservice in web service explorer in myEclipse. Any other ideas?

Thanks for explaining me though and your time til now. I wish I could find the solution asap.

Thanks
13 years ago
Hi Naren,

Sorry for confusion. I have been changing codes to check why I am getting error and pasted the code as it is while testing. Yes, setting is = dbVals. infact dbVals was setting. I changed it to dbVals only to test if it was a reserved word or something. dealInfoArr is arraylist and after setting dbVals (OR setting) I wanted to add that to dealInfoArr arraylist and return arraylist, kust like old times. Still can't do it as now you know why. As I said, adding this line dealInfoArr.add(dbVals) throws the error. The code executes but throws the error after execution is done. I.e. I get arraylist populated but i get error after printing arraylist contents at output. Any insights?

@ulf: That is my value object and Its a plain class just like any other java class in the package said above in the same project. Its a plain POJO/bean. Do I need to do something special? Can you explain me please?

Thanks in adv.

- AB
13 years ago