eclipse-ee4j / eclipse-ee4j/metro-wsit
Creating WCF client instructions are not working
- Dominant language
- Java
- Stars
- 6
- Forks
- 21
- Avg merge
- 10h 2m
- Merged PRs (30d)
- 1
Description
In Metro user guide, there is a chapter explaining creating WCF client.
[https://metro.dev.java.net/guide/Creating_a_WCF_Client.html](https://metro.dev.java.net/guide/Creating_a_WCF_Client.html)
In the prerequisites section it says,
You must have the following software installed to create the WCF client:
* Microsoft Windows Software Development Kit (SDK) for July Community
Technology Preview
* Microsoft .NET Framework 3.5 RTM
* The csclient-enabled-fromjava.zip example bundle, which is availalble for
download.
Since FCS versions are available now , this needs to be updated with the current
versions that are available for download.
Also, the build.bat in csclient-enabled-fromjava.zip needs to be updated.
It currently has
svcutil /config:Client.exe.config
[http://localhost:8080/wsit-enabled-fromjava/addnumbers?wsdl](http://localhost:8080/wsit-enabled-fromjava/addnumbers?wsdl)
C:\WINNT\Microsoft.NET\Framework\v2.0.50727\csc.exe
/r:"C:\WINNT\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\System.ServiceModel.dll"
/r:"C:\WINNT\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation\System.Runtime.Serialization.dll" Client.cs AddNumbersImplService.cs
Its better to change the script to use %PROGRAMFILES% and %WINDIR% env vaiables
instead of hardcoding to C:\WINNT etc, as on my windows xp it was C:\WINDOWS\
instead of C:\WINNT.
When I try to use this build script after fixing the paths, I got an error saying
c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.ServiceMod
el.dll: error CS1703: An assembly with the same identity 'System.ServiceModel,
Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has
already been imported. Try removing one of the duplicate references.
c:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\System.
ServiceModel.dll: (Location of symbol related to previous error)
c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.Runtime.Se
rialization.dll: error CS1703: An assembly with the same identity
'System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' has already been imported. Try removing
one of the duplicate references.
c:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\System.
Runtime.Serialization.dll: (Location of symbol related to previous error)
After I removed the explicit references to those dlls, it worked.
Please verify if the instructions for the sample works with latest .Net 3.5
framework and Windows SDK.
#### Environment
Operating System: All
Platform: Macintosh
#### Affected Versions
[current]
Source: [https://github.com/javaee/metro-wsit/issues/1003](https://github.com/javaee/metro-wsit/issues/1003)
Author: glassfishrobot
Contributor guide
Research direction
Review the Metro guide's WCF client prerequisites and the build.bat in csclient-enabled-fromjava.zip. Verify the sample against the current .NET 3.5 framework and Windows SDK, update the documented downloads and environment-variable paths, and confirm the script builds without duplicate assembly references.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100