This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!

walter wang

Ranch Hand
+ Follow
since Jun 02, 2001
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 walter wang

is it possible to detect a CDI manged bean's scope at runtime?

any hints will be more than welcome!

here is the answear

Another wrinkle here is that typically, with xsd validation in java libraries, if your XML files specifies a particular schemaLocation url in an XML file, like xsi:schemaLocation="http://somewhere/something.xsd" typically within one of your dependency jars it will contain that same xsd file, in its resources, and it has a "mapping" option in the jar saying to treat that xsd file as if it maps to the url http://somewhere/something.xsd (so you never end up going to web and downloading the file, it just exists locally).
like below , the xsd file are located on interent , then how can Java XML parser load them from the internet correctly, even the computer is offline.

xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"

more information (read) you could find it from
http://stackoverflow.com/questions/5875021/what-is-the-use-of-xsischemalocation
Thanks for the explaining!
5 years ago
JSP

in this website
https://www.deutschepost.de/sendung/simpleQuery.html

it sent request to html instead ? how could it work? i thought you could only send format to jsp, asp, php, or etc
could somebody example to me? could html page also process form request?

<FORM class=cl action=/de/toolbar/suchergebnisse.html><INPUT name=_charset_ type=hidden value=UTF-8>

Thanks!
5 years ago
JSP
here is the answear

in some server , only import Root CA certificate is enough.
in some server , need to import Root CA and client certificate (entire certificate chain)
5 years ago
Hey Thanks alot for your reply.

should the client certificate also be imported into server's trust store?

someone told me only importing root certficate into server's trust store is enough.
5 years ago
For two way SSL, client's certificate should be imported into server's trust store.
my question is : Should client's root certificate also be imported into server's trust store?

PS: client's certificate is issued/signed by another certificate (Root certificate)

Any hints will be more than welcome!
5 years ago
here in my XML file, it defines some name spaces , and schema referred by name space, those schema file, as you can see, are located on internet.
my program XML parser works fine and able to parse those xml element defined in those schema files even without access to internet,

my question is, how can XML parser find those schema files from internet even without access to internet ?

Any hints will be more than welcome!


xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
http://cxf.apache.org/blueprint/jaxws http://cxf.apache.org/schemas/blueprint/jaxws.xsd
http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd"
only http get for serverside wsdl is blocked. post still works , but i have this wsdl file at soap client before hand already.
what i did is just use this local wsdl file, but replace soap address with real server address. I want to replace the soap address (dummy address) in local wsdl
with real soap address on the fly(at run time)

Rgds
5 years ago

At Server side the http get is blocked for wsdl, in this case, Is there a good way to make soap client call?

Any hints will be more than welcome!


5 years ago
Thanks I think your suggestion is the solution.
There is no why to make generated stub client code using throws java.io.Exception.
6 years ago
In my web service method. if it declares throws any standard java checked Exception (or any exception from java API , for example java.io.IOException)
then in generated client code by wsimport or wsdl2java, it will generatel IOException_Exception instead of IOException. which is not what I want or client side expected
Any ideas to solve this problem?
I know how to throw custom defined exception by reading this link
http://io.typepad.com/eben_hewitt_on_java/2009/07/using-soap-faults-and-exceptions-in-java-jaxws-web-services.html

6 years ago
Jaikiran Pai, thanks for the hints "mvn dependency:tree "
looks like it will automatically download the latest version if version is not defined in camel-core, i guess other lib for example camel-jaxb is based on camel-version variable defined in camel-core.


<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
</dependency>


<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jaxb</artifactId>
<version>${camel-version}</version>
</dependency>

6 years ago
below is example from camel in action code, there is no defination for ${camel-version} and version in dependency, but maven compile and install still work
the question is which version will be downloaded by Maven ?


parent pom is like below
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.camelinaction</groupId>
<artifactId>parent</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>chapter3</artifactId>
<packaging>pom</packaging>
<version>1.0.0</version>
<name>Camel in Action :: Chapter 3</name>

<modules>
<module>transform</module>
<module>order</module>
<module>converter</module>
</modules>
</project>

6 years ago