Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Tiago Fernandez

Ranch Hand
+ Follow
since May 16, 2003
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 Tiago Fernandez

Hello,

I'm having issues adding a custom SOAP header to Axis when the flag "must understand" is set to 1 (true):

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}MustUnderstand
faultSubcode:
faultString: Did not understand "MustUnderstand" header(s):{http://www.mycompany.net/mymsg/schema/msg-header-1_0.xsd}MessageHeader
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:96)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)

As I said, everything works when "must understand" is 0 (false). What am I missing?

Regards.
11 years ago
Thanks everyone! I've taken the following solution for the problem I was having anyways:



Cheers!
12 years ago
Hello folks,

Say I have an XML like this:

<Node>Foo</Node><Node>Bar</Node>

I need to include CDATA prefix/sufix for every <Node/> element. The desired output would be:

<Node><![CDATA[Foo]]></Node><Node><![CDATA[Bar]]></Node>

Do you think it's possible to do this using regular expression without spliting the nodes and applying the transformation for each substring?

Thanks in advance,
Tiago
12 years ago

Originally posted by Sam Gehouse:
What approach has the examinees taken for sequence diagram?

1) Show names of the methods in a great detail. e.g., getItinerary()
2) Also show attributes in those methods. e.g. getItinerary(customer)
3) Only add notes, instead of showing method names. e.g., Get list of itineraries for a customer as a note.

Or, a combination there of?



I've chosen the first option, since I wanted to keep the sequence diagrams clean.

Originally posted by Muhammad Asif:
The question regarding Class Diagram and Component Diagram is quite interesting.. Infact, i was really worried about my component diagram, however was extremely sure about the correctness of my class diagram. Class diagram was split for EJB's, Value Objects, Utilities etc.



What about extending the business domain model by creating another class diagram? Have you did it?
Thanks for replying Paul. Do you know a better solution for addressing this issue, once I can't modify the XML input? Adding "ds" to xmlns is definitely an ugly workaround
Hello,

I'm trying to produce another XML from an existing XML using XSLT (XML + XSLT = XML), and I'm experiencing namespaces issue. I'm new to this, so I guess the solution might be easy, anyways I'm still confused about handling this.

Scenario A:
---
XML input:
<metadata xmlns="http://www.mycompany.com/schema/odsload"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">;

XSLT:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">;

XML output:
Contains just data inside the XML input elements


Scenario B:
---
XML input:
<metadata xmlnsds="http://www.mycompany.com/schema/odsload"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">;

XSLT:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">;

XML output:
Ok, I've got a well structured XML

Can anybody tell me please what's going on?

Thanks!
Hello Filipe,

Whizlabs's SCEA exam simulator is the one I've chosen for studying before clearing part I. IMO it's harder than the real exam, since its questions are way more detailed.

Good luck!
Hello,

I've several job oportunities for working at Sophia-Antipolis, a technology park northwest of Antibes and southwest of Nice, France. Much of the park falls within the commune of Valbonne. Formed in 1970, it houses primarily companies in the fields of computing, electronics, pharmacology and biotechnology. Several institutions of higher learning are also located here, along with the European headquarters of W3C.

A partial list of companies and institutions located in Sophia-Antipolis:

* Amadeus, a travel industry IT company
* Hewlett Packard
* Accenture
* Air France
* CERAM Sophia Antipolis, European School of Business
* CSR plc
* Philips Electronics
* Schneider-electric
* European Telecommunications Standards Institute (ETSI)
* INRIA, Sophia-Antipolis unit
* Labs from �cole nationale sup�rieure des Mines de Paris
* Polytech'Nice Sophia, (Polytechnic school of the University of Nice Sophia-Antipolis).
* European Research Consortium for Informatics and Mathematics (ERCIM), the European home of the World Wide Web Consortium (W3C)
* SAP AG, SAP Labs France
* Institut Eur�com
* UDcast
* GROUPE SET language school http://www.groupeset.com
* Cadence Design Systems

Sophia-Antipolis also benefits from the close proximity of Thales Alenia Space (Cannes), IBM (La Gaude), and Texas Instruments (Villeneuve-Loubet).

Requirements:
- Must speak english or french
- From 1 to 8 years of experience in Java, C# or C/C++

Desirable:
- Technology certifications

Please send you resume in english to: euromeinster at gmail dot com

Good luck!
13 years ago
Thanks Sreenivasa, I was just worried about some sort of automatic failure or something, for changing names. Now I'm sure this is gonna be written to my assumptions list
Hello,

I'm just starting my SCEA project, and today I'm taking a look at the business model. I'm wondering if "Seats" shouldn't be named just as "Seat", since the multiplicity in the end point already shows "1..*". The word in the plural is confusing and appears to be more RDBM-like. Do you think this is one of the pitfalls or should I just go ahead and rename it?

Thanks!
Yes, it is... I guess I'm still missing something.
14 years ago
Hello all,

I'd like to know if it's possible to run an application from an EAR file. If so, how do I do it? Currently, I get an "Exception in thread "main" java.lang.NoClassDefFoundError".

My EAR file contains all the libraries bound on APP-INF/lib, and the JAR file with the Main-Class correctly set on the "/", the root. Outside the EAR file, it works fine.

Can anybody help?

Thanks in advance!
14 years ago
Ok, I quit. I'll use another layout:

> /
> +- pom.xml
> +- core/
> ...+- pom.xml
> ...+- src/
> ......+- main/
> .........+- java/
> .............+- /mypack/
> ................+- core/
> ...+- test/
> ......+- java/
> ..........+- /mypack/
> ..............+- core/
> ...+- target/
> ......+- my-core-1.0.jar
> +- gui/
> ...+- pom.xml
> ...+- src/
> ......+- main/
> .........+- java/
> .............+- /mypack/
> ................+- gui/
> ...+- test/
> ......+- java/
> ..........+- /mypack/
> ..............+- gui/
> ...+- target/
> ......+- my-module-1.0.jar
14 years ago
Hello everyone,

I'm trying to change the whole architecture structure I've got to get it working along Maven 2, following the best practices (http://maven.apache.org/guides/mini/guide-using-one-source-directory.html). So, currently I've got a project with a structure like this:

/
+- pom.xml
+- src/
...+- main/
......+- java/
..........+- /mypack/
..............+- core/
..............+- gui/
...+- test/
......+- java/
..........+- /mypack/
..............+- core/
..............+- gui/
+- core/
...+- pom.xml
...+- target/
......+- my-core-1.0.jar
+- gui/
...+- pom.xml
...+- target/
......+- my-module-1.0.jar

It's building ok when I don't tell Maven to run the test cases, but when turning it on, maven-surefire-plugin gets confused for some reason. The issue is: when testing only the core module, surefire's plugin is trying to run also the tests from the gui module. That's an absurd, since in core/pom.xml I'm including ONLY core's tests:

<testSourceDirectory>../src/test/java/</testSourceDirectory>
...
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/core/**</include>
</includes>
</configuration>
</plugin>

Did anybody already experience this problem?

Thanks a lot.
[ April 15, 2006: Message edited by: Tiago Fernandez ]
14 years ago