<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Java client and WCF server</title>
	<atom:link href="http://www.kevingao.net/wcf-java-interop/java-client-and-wcf-server.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kevingao.net/wcf-java-interop/java-client-and-wcf-server.html</link>
	<description>SourceSafe, Source Control, Software Development</description>
	<lastBuildDate>Wed, 07 Jul 2010 21:46:55 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: var</title>
		<link>http://www.kevingao.net/wcf-java-interop/java-client-and-wcf-server.html/comment-page-1#comment-2590</link>
		<dc:creator>var</dc:creator>
		<pubDate>Tue, 08 Jun 2010 15:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevingao.net/?p=544#comment-2590</guid>
		<description>Jose,

I also ran into this error and I think there is typo in wsimport step. Either you create a file named TestService.xml in previous step or use service1.xml in the wsimport step.

bin\wsimport -extension -keep -Xnocompile -b service1.xml http://localhost:8888/Service1.svc?wsdl</description>
		<content:encoded><![CDATA[<p>Jose,</p>
<p>I also ran into this error and I think there is typo in wsimport step. Either you create a file named TestService.xml in previous step or use service1.xml in the wsimport step.</p>
<p>bin\wsimport -extension -keep -Xnocompile -b service1.xml <a href="http://localhost:8888/Service1.svc?wsdl" rel="nofollow">http://localhost:8888/Service1.svc?wsdl</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose</title>
		<link>http://www.kevingao.net/wcf-java-interop/java-client-and-wcf-server.html/comment-page-1#comment-2548</link>
		<dc:creator>Jose</dc:creator>
		<pubDate>Sat, 10 Apr 2010 09:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevingao.net/?p=544#comment-2548</guid>
		<description>I created service1.xml with 


    
        true
    


My JAVA_HOME is set to jdk1.6.0_14.

I put it in the metro directory. Then I ran 

bin\wsimport -extension -keep -Xnocompile -b TestService.xml http://localhost:8888/Service1.svc?wsdl

I got this error 
&quot;Exception in thread &quot;main&quot; com.sun.xml.ws.streaming.XMLReaderException: Unable to create StAX reader or writer&quot;

I cannot proceed with your tutorial because of this. Any ideas on how I could fix this? 

Thanks

Jose</description>
		<content:encoded><![CDATA[<p>I created service1.xml with </p>
<p>        true</p>
<p>My JAVA_HOME is set to jdk1.6.0_14.</p>
<p>I put it in the metro directory. Then I ran </p>
<p>bin\wsimport -extension -keep -Xnocompile -b TestService.xml <a href="http://localhost:8888/Service1.svc?wsdl" rel="nofollow">http://localhost:8888/Service1.svc?wsdl</a></p>
<p>I got this error<br />
&#8220;Exception in thread &#8220;main&#8221; com.sun.xml.ws.streaming.XMLReaderException: Unable to create StAX reader or writer&#8221;</p>
<p>I cannot proceed with your tutorial because of this. Any ideas on how I could fix this? </p>
<p>Thanks</p>
<p>Jose</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumant</title>
		<link>http://www.kevingao.net/wcf-java-interop/java-client-and-wcf-server.html/comment-page-1#comment-2499</link>
		<dc:creator>Sumant</dc:creator>
		<pubDate>Fri, 29 Jan 2010 16:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevingao.net/?p=544#comment-2499</guid>
		<description>Hi Kevin,

Can you give an example of Java client when the WCF service is deployed on a IIS server with &quot;windows Integrated security&quot; security enabled. The client should be able to respond to &quot;Negotiate , NTLM&quot;  authentication scheme. I couldn&#039;t figure out how to supply the windows credentials for the NTLM challenge using METRO/WSIT.

I appreciate your insights into this security issue.</description>
		<content:encoded><![CDATA[<p>Hi Kevin,</p>
<p>Can you give an example of Java client when the WCF service is deployed on a IIS server with &#8220;windows Integrated security&#8221; security enabled. The client should be able to respond to &#8220;Negotiate , NTLM&#8221;  authentication scheme. I couldn&#8217;t figure out how to supply the windows credentials for the NTLM challenge using METRO/WSIT.</p>
<p>I appreciate your insights into this security issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yograj Patil</title>
		<link>http://www.kevingao.net/wcf-java-interop/java-client-and-wcf-server.html/comment-page-1#comment-2497</link>
		<dc:creator>Yograj Patil</dc:creator>
		<pubDate>Thu, 28 Jan 2010 05:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevingao.net/?p=544#comment-2497</guid>
		<description>Is it possible to implement two way communication (Callback operation) using metro?</description>
		<content:encoded><![CDATA[<p>Is it possible to implement two way communication (Callback operation) using metro?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronak</title>
		<link>http://www.kevingao.net/wcf-java-interop/java-client-and-wcf-server.html/comment-page-1#comment-2452</link>
		<dc:creator>Ronak</dc:creator>
		<pubDate>Fri, 13 Nov 2009 15:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevingao.net/?p=544#comment-2452</guid>
		<description>Thanks for this really good Tutorial. I am having some issue right now. I am able to generate the proxy classes following your step.

Problem 1: All the strings in Method are JAXBElement 

Solution i have found so far is using this bind.xml file instead of yours





Is there any way i can combine both of yours and this one?

Problem 2: I am getting NullPointerException, when execution client code..It occurs in the first line in Main function. 

Exception:
java.lang.NullPointerException
	at com.sun.xml.ws.model.wsdl.WSDLOperationImpl.freez(WSDLOperationImpl.java:147)
	at com.sun.xml.ws.model.wsdl.WSDLPortTypeImpl.freeze(WSDLPortTypeImpl.java:91)
	at com.sun.xml.ws.model.wsdl.WSDLBoundPortTypeImpl.freeze(WSDLBoundPortTypeImpl.java:215)
	at com.sun.xml.ws.model.wsdl.WSDLModelImpl.freeze(WSDLModelImpl.java:241)
	at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:147)
	at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:265)
	at com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:228)
	at com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:176)
	at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
	at javax.xml.ws.Service.(Unknown Source)
	at org.tempuri.BPAExecutionServerWCFServer.(BPAExecutionServerWCFServer.java:42)
	at WCF.WCFTest.main(WCFTest.java:20)

Code:

package WCF;

import java.net.URL;


import javax.xml.namespace.QName;
import javax.xml.ws.BindingProvider;

import org.datacontract.schemas._2004._07.automate.ClientType;
import org.datacontract.schemas._2004._07.automate_messages.OpenSessionRequestMessage;
import org.datacontract.schemas._2004._07.automate_messages.OpenSessionResponseMessage;
import org.tempuri.IBPAExecutionServerHTTPServiceContract;
import org.tempuri.BPAExecutionServerWCFServer;;

public class WCFTest {
	 public static void main(String[] strArgs)
	    {
	        try
	        {
	        	BPAExecutionServerWCFServer service1 = new BPAExecutionServerWCFServer(new URL(&quot;http://209.223.157.111:7102/BPAExecutionServer/?wsdl&quot;), new QName(&quot;http://tempuri.org/&quot;, &quot;BPAExecutionServerWCFServer&quot;));
	        	IBPAExecutionServerHTTPServiceContract port = service1.getBasicHttpBindingIBPAExecutionServerHTTPServiceContract();
	            ((BindingProvider)port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, &quot;http://209.223.157.111:7102/BPAExecutionServer/?wsdl&quot;);	            
	            OpenSessionRequestMessage request = new OpenSessionRequestMessage();
	            request.setAttemptRegistration(true);
	            request.setClientType(ClientType.PROCESS_AGENT);

				OpenSessionResponseMessage strOutput = port.openSessionRequest(request);
	            System.out.println(strOutput);
	        }
	        catch(Exception e)
	        {
	            e.printStackTrace();
	        }
	    }
}</description>
		<content:encoded><![CDATA[<p>Thanks for this really good Tutorial. I am having some issue right now. I am able to generate the proxy classes following your step.</p>
<p>Problem 1: All the strings in Method are JAXBElement </p>
<p>Solution i have found so far is using this bind.xml file instead of yours</p>
<p>Is there any way i can combine both of yours and this one?</p>
<p>Problem 2: I am getting NullPointerException, when execution client code..It occurs in the first line in Main function. </p>
<p>Exception:<br />
java.lang.NullPointerException<br />
	at com.sun.xml.ws.model.wsdl.WSDLOperationImpl.freez(WSDLOperationImpl.java:147)<br />
	at com.sun.xml.ws.model.wsdl.WSDLPortTypeImpl.freeze(WSDLPortTypeImpl.java:91)<br />
	at com.sun.xml.ws.model.wsdl.WSDLBoundPortTypeImpl.freeze(WSDLBoundPortTypeImpl.java:215)<br />
	at com.sun.xml.ws.model.wsdl.WSDLModelImpl.freeze(WSDLModelImpl.java:241)<br />
	at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:147)<br />
	at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:265)<br />
	at com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:228)<br />
	at com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:176)<br />
	at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)<br />
	at javax.xml.ws.Service.(Unknown Source)<br />
	at org.tempuri.BPAExecutionServerWCFServer.(BPAExecutionServerWCFServer.java:42)<br />
	at WCF.WCFTest.main(WCFTest.java:20)</p>
<p>Code:</p>
<p>package WCF;</p>
<p>import java.net.URL;</p>
<p>import javax.xml.namespace.QName;<br />
import javax.xml.ws.BindingProvider;</p>
<p>import org.datacontract.schemas._2004._07.automate.ClientType;<br />
import org.datacontract.schemas._2004._07.automate_messages.OpenSessionRequestMessage;<br />
import org.datacontract.schemas._2004._07.automate_messages.OpenSessionResponseMessage;<br />
import org.tempuri.IBPAExecutionServerHTTPServiceContract;<br />
import org.tempuri.BPAExecutionServerWCFServer;;</p>
<p>public class WCFTest {<br />
	 public static void main(String[] strArgs)<br />
	    {<br />
	        try<br />
	        {<br />
	        	BPAExecutionServerWCFServer service1 = new BPAExecutionServerWCFServer(new URL(&#8221;http://209.223.157.111:7102/BPAExecutionServer/?wsdl&#8221;), new QName(&#8221;http://tempuri.org/&#8221;, &#8220;BPAExecutionServerWCFServer&#8221;));<br />
	        	IBPAExecutionServerHTTPServiceContract port = service1.getBasicHttpBindingIBPAExecutionServerHTTPServiceContract();<br />
	            ((BindingProvider)port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, &#8220;http://209.223.157.111:7102/BPAExecutionServer/?wsdl&#8221;);<br />
	            OpenSessionRequestMessage request = new OpenSessionRequestMessage();<br />
	            request.setAttemptRegistration(true);<br />
	            request.setClientType(ClientType.PROCESS_AGENT);</p>
<p>				OpenSessionResponseMessage strOutput = port.openSessionRequest(request);<br />
	            System.out.println(strOutput);<br />
	        }<br />
	        catch(Exception e)<br />
	        {<br />
	            e.printStackTrace();<br />
	        }<br />
	    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NItin</title>
		<link>http://www.kevingao.net/wcf-java-interop/java-client-and-wcf-server.html/comment-page-1#comment-2376</link>
		<dc:creator>NItin</dc:creator>
		<pubDate>Tue, 08 Sep 2009 15:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevingao.net/?p=544#comment-2376</guid>
		<description>How would you create a java client when you have a WCF service running on net tcp binding.</description>
		<content:encoded><![CDATA[<p>How would you create a java client when you have a WCF service running on net tcp binding.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julisa</title>
		<link>http://www.kevingao.net/wcf-java-interop/java-client-and-wcf-server.html/comment-page-1#comment-1801</link>
		<dc:creator>Julisa</dc:creator>
		<pubDate>Fri, 05 Jun 2009 05:41:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevingao.net/?p=544#comment-1801</guid>
		<description>It is possible to use javax.xml.ws.Dispatch to communicating with WCF Service?</description>
		<content:encoded><![CDATA[<p>It is possible to use javax.xml.ws.Dispatch to communicating with WCF Service?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anaristos</title>
		<link>http://www.kevingao.net/wcf-java-interop/java-client-and-wcf-server.html/comment-page-1#comment-1771</link>
		<dc:creator>Anaristos</dc:creator>
		<pubDate>Tue, 05 May 2009 00:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevingao.net/?p=544#comment-1771</guid>
		<description>Here is something interesting. I imported the Eclipse project into Netbeans 6.5.1 and it ran perfectly. So the problem is with Eclipse.</description>
		<content:encoded><![CDATA[<p>Here is something interesting. I imported the Eclipse project into Netbeans 6.5.1 and it ran perfectly. So the problem is with Eclipse.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anaristos</title>
		<link>http://www.kevingao.net/wcf-java-interop/java-client-and-wcf-server.html/comment-page-1#comment-1770</link>
		<dc:creator>Anaristos</dc:creator>
		<pubDate>Mon, 04 May 2009 09:44:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevingao.net/?p=544#comment-1770</guid>
		<description>I have implemented both the VWD Server/Client and the WCF Server/Java Client schemes. The first one works just fine, as I stated before. However, with the second I have run into a big problem. My Java client runs into a &quot;Permission denied: connect.&quot; wall when attempting to access the WSDL. I thought that, since I am running under Vista (6SP1) that perhaps it was UAC that was causing the problem, but that is not it. Nor was it a binding mismatch. I think that because the Java side is coming in through a remote socket that Windows authentication is blocking the access. Perhaps you have some suggestions as to how to get around this?</description>
		<content:encoded><![CDATA[<p>I have implemented both the VWD Server/Client and the WCF Server/Java Client schemes. The first one works just fine, as I stated before. However, with the second I have run into a big problem. My Java client runs into a &#8220;Permission denied: connect.&#8221; wall when attempting to access the WSDL. I thought that, since I am running under Vista (6SP1) that perhaps it was UAC that was causing the problem, but that is not it. Nor was it a binding mismatch. I think that because the Java side is coming in through a remote socket that Windows authentication is blocking the access. Perhaps you have some suggestions as to how to get around this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
