|
Replies:
12
-
Last Post:
Jul 14, 2006 5:52 PM
by: arungupta
|
|
|
|
|
|
|
June WCF CTP and TOT WSIT
Posted:
Jun 30, 2006 11:36 AM
|
|
|
Hi everyone.
I have built the WSIT source from 6/27 code. Following the instructions for everything i have installed glassfish - 2 B08, Netbeans 5.5, the WSIT plugin.
After installing into glassfish I did the flash tutorials, and got the jsp to work.
In VS2005 with the june ctp - I created a new project with a web reference to the wsdl.
The generated app.config in .net has this in it:
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="xamlOnButtonApp2.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </sectionGroup> </configSections> <applicationSettings> <xamlOnButtonApp2.Properties.Settings> <setting name="xamlOnButtonApp2_localhost_NewWebServiceService" serializeAs="String"> <value>http://localhost:8088/CleanWeb/NewWebService</value> </setting> </xamlOnButtonApp2.Properties.Settings> </applicationSettings> </configuration>
When I run it I get in .net -
InvalidOperationException: {"Response is not well-formed XML."} with an inner exception: XmlException: {"'SOAP-ENV' is an undeclared namespace. Line 1, position 408."}
The message returned from the service is: 5f <?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Header 69 ><Action xmlns="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/fault</Action> 77 <FaultDetail><ProblemHeaderQName xmlns="http://www.w3.org/2005/08/addressing">Action</ProblemHeaderQName></FaultDetail> 44 <RelatesTo xmlns="http://www.w3.org/2005/08/addressing"></RelatesTo> 156 </S:Header><S:Body><SOAP-ENV:Fault><faultcode xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://www.w3.org/2005/08/addressing">ns0:MessageAddressingHeaderRequired</faultcode><faultstring>A required header representing a Message Addressing Property is not present</faultstring></SOAP-ENV:Fault></S:Body></S:Envelope> 0
------
Any Ideas
|
|
|
|
|
|
|
Re: June WCF CTP and TOT WSIT
Posted:
Jun 30, 2006 11:41 AM
in response to: ofowler
|
|
|
In case you question does not get answered soon, please be aware that most Tango engineers are on vacation the week of July 3.
|
|
|
|
|
|
|
|
Re: June WCF CTP and TOT WSIT
Posted:
Jun 30, 2006 11:50 AM
in response to: haroldcarr
|
|
|
If I use svcutil.exe instead of the "webreference" - I get assertions from svcutil.
the app.config: <?xml version="1.0" encoding="utf-8"?> <configuration> <system.serviceModel> <bindings> <customBinding> <binding name="NewWebServicePortBinding"> <!-- WsdlImporter encountered unrecognized policy assertions in ServiceDescription 'http://pkg/': --> <!-- <wsdl:binding name='NewWebServicePortBinding'> --> <!-- <ns4:UsingAddressing xmlns:ns4="http://www.w3.org/2005/08/addressing">..</ns4:UsingAddressing> --> <reliableSession acknowledgementInterval="00:00:00.2000000" flowControlEnabled="true" inactivityTimeout="00:10:00" maxPendingChannels="128" maxRetryCount="8" maxTransferWindowSize="32" ordered="true" /> <mtomMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" messageVersion="Soap11" maxBufferSize="65536" writeEncoding="utf-8"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> </mtomMessageEncoding> <httpTransport manualAddressing="false" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous" realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false" useDefaultWebProxy="true" /> </binding> </customBinding> </bindings> <client> <endpoint address="http://localhost:8088/CleanWeb/NewWebService" binding="customBinding" bindingConfiguration="NewWebServicePortBinding" contract="NewWebService" name="NewWebServicePort" /> </client> </system.serviceModel> </configuration>
And running the app I get a ProtocolException: {"Addressing Version 'AddressingNone (http://schemas.microsoft.com/ws/2005/05/addressing/none)' is not supported."}
|
|
|
|
|
|
|
|
Re: June WCF CTP and TOT WSIT
Posted:
Jul 2, 2006 3:04 PM
in response to: ofowler
|
|
|
> And running the app I get a ProtocolException: > {"Addressing Version 'AddressingNone > (http://schemas.microsoft.com/ws/2005/05/addressing/no > ne)' is not supported."}
2005/05/addressing seems to be Microsoft-internal version of WS-Addressing. WS-Addressing implementation in WSIT builds do not support this version.
Can you please post the WSDL advertised ? Also provide some more information on your client (WSIT or WCF) and endpoint (WSIT or WCF) ?
Thanks, -Arun
|
|
|
|
|
|
|
|
Re: June WCF CTP and TOT WSIT
Posted:
Jul 6, 2006 6:48 AM
in response to: arungupta
|
|
|
I am sorry, I have had machine problems ( power supply ) and have not had access to the system. I will post the wsdl as soon as I can, but to get it, really all you have to do is use the netbeans plugin and follow the flash demo...
|
|
|
|
|
|
|
|
Re: June WCF CTP and TOT WSIT
Posted:
Jul 7, 2006 9:11 AM
in response to: ofowler
|
|
|
Here is the WSDL:
<definitions targetNamespace="http://pkg/" name="NewWebServiceService"> <wsp:UsingPolicy/> − <wsp:Policy ns1:Id="NewWebServicePortBindingPolicy"> − <wsp:ExactlyOne> − <wsp:All> <ns2:OptimizedMimeSerialization/> <ns3:RMAssertion/> <ns4:UsingAddressing/> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> − <types> − <xsd:schema> <xsd:import namespace="http://pkg/" schemaLocation="http://localhost:8088/CleanWeb/NewWebService?xsd=1"/> </xsd:schema> </types> − <message name="sample_operation"> <part name="parameters" element="tns:sample_operation"/> </message> − <message name="sample_operationResponse"> <part name="parameters" element="tns:sample_operationResponse"/> </message> − <portType name="NewWebService"> − <operation name="sample_operation"> <input message="tns:sample_operation"/> <output message="tns:sample_operationResponse"/> </operation> </portType> − <binding name="NewWebServicePortBinding" type="tns:NewWebService"> <wsp:PolicyReference URI="#NewWebServicePortBindingPolicy"/> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> − <operation name="sample_operation"> <soap:operation soapAction=""/> − <input> <soap:body use="literal"/> </input> − <output> <soap:body use="literal"/> </output> </operation> </binding> − <service name="NewWebServiceService"> − <port name="NewWebServicePort" binding="tns:NewWebServicePortBinding"> <soap:address location="http://localhost:8088/CleanWeb/NewWebService"/> </port> </service> </definitions>
|
|
|
|
|
|
|
|
Re: June WCF CTP and TOT WSIT
Posted:
Jul 10, 2006 1:26 PM
in response to: ofowler
|
|
|
> <definitions targetNamespace="http://pkg/" > name="NewWebServiceService"> > <wsp:UsingPolicy/> > − None of namespace declarations are visible.
Can you please repost the WSDL ?
-Arun
|
|
|
|
|
|
|
|
Re: June WCF CTP and TOT WSIT
Posted:
Jul 10, 2006 1:38 PM
in response to: arungupta
|
|
|
<?xml version="1.0"?> <definitions xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://pkg/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://pkg/" name="NewWebServiceService"> <wsp:UsingPolicy/> <wsp:Policy xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" ns1:Id="NewWebServicePortBindingPolicy"> <wsp:ExactlyOne> <wsp:All> <ns2:OptimizedMimeSerialization xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization"/> <ns3:RMAssertion xmlns:ns3="http://schemas.xmlsoap.org/ws/2005/02/rm/policy"/> <ns4:UsingAddressing xmlns:ns4="http://www.w3.org/2005/08/addressing"/> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> <types> <xsd:schema> <xsd:import namespace="http://pkg/" schemaLocation="http://localhost:8088/CleanWeb/NewWebService?xsd=1"/> </xsd:schema> </types> <message name="sample_operation"> <part name="parameters" element="tns:sample_operation"/> </message> <message name="sample_operationResponse"> <part name="parameters" element="tns:sample_operationResponse"/> </message> <portType name="NewWebService"> <operation name="sample_operation"> <input message="tns:sample_operation"/> <output message="tns:sample_operationResponse"/> </operation> </portType> <binding name="NewWebServicePortBinding" type="tns:NewWebService"> <wsp:PolicyReference URI="#NewWebServicePortBindingPolicy"/> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <operation name="sample_operation"> <soap:operation soapAction=""/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding> <service name="NewWebServiceService"> <port name="NewWebServicePort" binding="tns:NewWebServicePortBinding"> <soap:address location="http://localhost:8088/CleanWeb/NewWebService"/> </port> </service> </definitions>
|
|
|
|
|
|
|
|
Re: June WCF CTP and TOT WSIT
Posted:
Jul 11, 2006 6:24 AM
in response to: ofowler
|
|
|
I got the latest code this morning and will rebuild wsit and try again.
|
|
|
|
|
|
|
|
Re: June WCF CTP and TOT WSIT[RESOLVED]
Posted:
Jul 11, 2006 7:37 AM
in response to: ofowler
|
|
|
Success.
I rebuilt the latest TOT ( this mornings ) and created a new web service etc and was able to consume and call from June CTP.
Any idea when the JavaOne demo's ( with the WCF code ) will be posted?
Thanks for you're help.
|
|
|
|
|
|
|
|
Re: June WCF CTP and TOT WSIT[RESOLVED]
Posted:
Jul 14, 2006 5:52 PM
in response to: ofowler
|
|
|
Jun CTP had a backwards incompatible change in terms of WS-Addressing namespace used in the WSDL. I do not expect any WSDL using WS-Addressing support from Jun CTP to work with WSIT before the fix I made this morning.
Can you please explain how you got it working ?
BTW, JavaOne demo will be posted on java.net soon. Stay tuned for details and a blog entry.
Thanks, -Arun
|
|
|
|
|
|
|
|
Re: June WCF CTP and TOT WSIT
Posted:
Jul 11, 2006 12:54 PM
in response to: ofowler
|
|
|
WCF June CTP has a backwards non-compatible change in the version of WS-Addressing supported. We will fix this in the next few days (hopefully soon) and let you know.
-Arun
|
|
|
|
|
|
|
|
Re: June WCF CTP and TOT WSIT
Posted:
Jul 2, 2006 3:02 PM
in response to: ofowler
|
|
|
Please see in line responses ...
> In VS2005 with the june ctp - I created a new project
> with a web reference to the wsdl.
JUne CTP is released quite recently and we have not tried it so far. We are on vacation next week and thus will not be able to try it for couple of more weeks or so. Have you tried any older CTP bits, say Feb 2006 ?
> When I run it I get in .net -
>
> InvalidOperationException: {"Response is not
> well-formed XML."}
> with an inner exception:
> XmlException: {"'SOAP-ENV' is an undeclared
> namespace. Line 1, position 408."}
This happens when a WS-Addressing header in the message is using a prefix that has not been declared in the scope. This is a known bug and will be fixed after the vacation week.
> <FaultDetail><ProblemHeaderQName
> xmlns="http://www.w3.org/2005/08/addressing">Action roblemHeaderQName></FaultDetail>
> 44
This message detail seems to indicate that the service endpoint is not liking the Action header sent from client to service endpoint. Can you send the exact SOAP message sent from client and the published WSDL as well ?
> <RelatesTo
> xmlns="http://www.w3.org/2005/08/addressing"></Relates
> To>
> 156
> </S:Header><S:Body><SOAP-ENV:Fault><faultcode
Here is the SOAP-ENV prefix that is used and not declared in the scope.
Thanks,
-Arun
|
|
|
|
|