Windows Communication Foundation interoperability with Java.

Hii,
I am building a client for the WCF service using Soap1.2 and ws-security. I have tried building a stub for the service using JDeveloper 10 g and also tried to validate the wsdl using XML spy. Both are giving errors. I wanna know how could i genrate the stub for the service and also Validate WSDL? I know i might have to modify the WSDL, but dont know what changes must be required? And Also which std i must adhere?
Here is the WSDL
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                  xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
                  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
                  xmlns:wsap10="http://www.w3.org/2005/08/addressing"
                  xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
                  xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
                  xmlns:i0="http://Corona.Services.UserMgmt.UserMgmtSrv"
                  xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/09/policy/addressing"
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                  xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"
                  xmlns:tns="http://tempuri.org/"
                  xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
                  xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"
                  xmlns:wsa10="http://www.w3.org/2005/08/addressing"
                  targetNamespace="http://tempuri.org/" name="UserMgmtSrv">
  <wsdl:import namespace="http://Corona.Services.UserMgmt.UserMgmtSrv"
               location="http://debugger/Corona.Services/Corona.Services.svc?wsdl"/>
  <wsdl:types/>
  <wsdl:binding name="WSHttpBinding_UserMgmtSrv" type="i0:UserMgmtSrv">
    <wsp:PolicyReference URI="#WSHttpBinding_UserMgmtSrv_policy"/>
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="Authenticate">
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
      <wsdl:fault name="ArgumentExceptionFault">
        <soap12:fault name="ArgumentExceptionFault"
                      namespace="http://Corona.Services.UserMgmt.UserMgmtSrv.FaultException"/>
      </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="SaveHealthProfileWrapper">
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="UserMgmtSrv">
    <wsdl:port name="WSHttpBinding_UserMgmtSrv"
               binding="tns:WSHttpBinding_UserMgmtSrv">
      <soap12:address location="https://debugger/Corona.Services/Corona.Services.svc"/>
      <wsa10:EndpointReference>
        <wsa10:Address>https://debugger/Corona.Services/Corona.Services.svc</wsa10:Address>
      </wsa10:EndpointReference>
    </wsdl:port>
  </wsdl:service>
  <wsp:Policy wsu:Id="WSHttpBinding_UserMgmtSrv_policy">
    <wsp:ExactlyOne>
      <wsp:All>
        <wspe:Utf816FFFECharacterEncoding xmlns:wspe="http://schemas.xmlsoap.org/ws/2004/09/policy/encoding"/>
        <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
          <wsp:Policy>
            <sp:TransportToken>
              <wsp:Policy>
                <sp:HttpsToken RequireClientCertificate="false"/>
              </wsp:Policy>
            </sp:TransportToken>
            <sp:AlgorithmSuite>
              <wsp:Policy>
                <sp:Basic128/>
              </wsp:Policy>
            </sp:AlgorithmSuite>
            <sp:Layout>
              <wsp:Policy>
                <sp:Strict/>
              </wsp:Policy>
            </sp:Layout>
            <sp:IncludeTimestamp/>
          </wsp:Policy>
        </sp:TransportBinding>
        <sp:EndorsingSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
          <wsp:Policy>
            <sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
              <wsp:Policy>
                <mssp:RequireCancel wsp:Optional="true"
                                    xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy"/>
                <sp:BootstrapPolicy>
                  <wsp:Policy>
                    <sp:TransportBinding>
                      <wsp:Policy>
                        <sp:TransportToken>
                          <wsp:Policy>
                            <sp:HttpsToken RequireClientCertificate="false"/>
                          </wsp:Policy>
                        </sp:TransportToken>
                        <sp:AlgorithmSuite>
                          <wsp:Policy>
                            <sp:Basic128/>
                          </wsp:Policy>
                        </sp:AlgorithmSuite>
                        <sp:Layout>
                          <wsp:Policy>
                            <sp:Strict/>
                          </wsp:Policy>
                        </sp:Layout>
                        <sp:IncludeTimestamp/>
                      </wsp:Policy>
                    </sp:TransportBinding>
                    <sp:EndorsingSupportingTokens>
                      <wsp:Policy>
                        <sp:SpnegoContextToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
                          <wsp:Policy>
                            <mssp:RequireCancel wsp:Optional="true"
                                                xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy"/>
                          </wsp:Policy>
                        </sp:SpnegoContextToken>
                      </wsp:Policy>
                    </sp:EndorsingSupportingTokens>
                    <sp:Trust10>
                      <wsp:Policy>
                        <sp:MustSupportIssuedTokens/>
                        <sp:RequireClientEntropy/>
                        <sp:RequireServerEntropy/>
                      </wsp:Policy>
                    </sp:Trust10>
                  </wsp:Policy>
                </sp:BootstrapPolicy>
              </wsp:Policy>
            </sp:SecureConversationToken>
          </wsp:Policy>
        </sp:EndorsingSupportingTokens>
        <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
          <wsp:Policy>
            <sp:MustSupportIssuedTokens/>
            <sp:RequireClientEntropy/>
            <sp:RequireServerEntropy/>
          </wsp:Policy>
        </sp:Trust10>
        <wsap10:UsingAddressing/>
      </wsp:All>
    </wsp:ExactlyOne>
  </wsp:Policy>
  <wsp:UsingPolicy/>
</wsdl:definitions>

Unfortunately, at this point it appears only asmx?wsdl Web Services are supported.  If you can convert between formats, that may be your best solution.
Regards,
Mike S
NI AE

Similar Messages

  • Windows Communication Foundation .svc versus .asmx

    .NET 3.5 and above allow programmer to create Windows Communication Foundation that has the .svc file. I can use this WCF like a Web services on .Net C# and VB.NET without issues. I can also access what has been created on the browser (http://server1/DemoWebServices/Demo.svc?wsdl).
    However, when I go to LabView 8.6.1, it can only allowed import of asmx?wsdl Web services.
    Does that mean labview does not play with .svc?wsdl ?
    If not supported, would other Labview version allowed that support.

    Unfortunately, at this point it appears only asmx?wsdl Web Services are supported.  If you can convert between formats, that may be your best solution.
    Regards,
    Mike S
    NI AE

  • WCF- ( Windows communication Foundation ) New standard for webservice

    Dear Friends,
      Could anybody tell me whether we can call a WCF service from SAP PI?
      WCF (Windows communication Foundation) can be considered as a new standard for webservice.
    Take care,
    Karthik..k

    as of now only file with wsdl extention is supported,

  • Windows communication Foundation

    how to  View the   Windows communication Foundation  output  Results?

    You can use diagnostics for creating the service/client logs.
    <system.diagnostics>
    <sources>
    <source name="System.ServiceModel" switchValue="Information, ActivityTracing" propagateActivity="true">
    <listeners>
    <add type="System.Diagnostics.DefaultTraceListener" name="Default">
    <filter type=""/>
    </add>
    <add initializeData="C:\Temp\IService.svclog" type="System.Diagnostics.XmlWriterTraceListener" name="traceListener">
    <filter type=""/>
    </add>
    </listeners>
    </source>
    <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing">
    <listeners>
    <add type="System.Diagnostics.DefaultTraceListener" name="Default">
    <filter type=""/>
    </add>
    <add name="ServiceModelMessageLoggingListener">
    <filter type=""/>
    </add>
    </listeners>
    </source>
    </sources>
    <sharedListeners>
    <add initializeData="C:\Temp\IService.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
    <filter type=""/>
    </add>
    </sharedListeners>
    </system.diagnostics>

  • Importing WSDL from Windows Communication Foundation (WCF)

    We've created a new WCF windows service using VS2008/.net 3.5.  Using IE we can find the WSDL.  When using the LabVIEW (8.5) Import Web Service utility, returns an error when referencing the WSDL.
    Has anyone had any experience accessing a WCF based WSDL?

    Hello, I have the same experience, we us a web server also VS2008/.net 3.5 and we will control a device with it.   error from web server import:
    1. The URL does not exist or the WSDL is bad   // comment is correct we have check out with java client
    2. Authentication is not correct    //comment we haven't any authentication 
    3. Proxy information is not correct // comment no Proxy is localhost !
    But with a java applet the server url (http://127.0.01:8111/MacroServer) is it achievable look user XML sheet in the attachment.But also we have checked the LV 8.6 import function with the web server example on the Website xmethods (http://www.xmethods.net/ve2/index.po) those functions are very well. Please if there any go around for this tell us.
    Best regards reiner
    Attachments:
    http___127.0.0.1_8111_Macroserver.pdf ‏60 KB

  • JMenuBar display quirks with some window managers on Linux with Java 6

    When I run this code on Windows with Java 5 or Java 6, it works fine.
    When on Linux with Java 5, it works fine.
    When on Linux with Java 6 in KDE, it works fine.
    When on Linux with Java 6 with twm or e17, the JMenu shows when I click on the JMenuBar, but goes away as soon as I release the mouse button. If I manually move or resize the window, it then works fine.
    If I remove setLocationByPlatform(true), the menu bar works, but it does not position the window by platform, which is the desired behavior.
    Am I doing something wrong, is there something wrong with both twm and e17, or is this a bug?
    import java.awt.Dimension;
    import java.awt.Label;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JFrame;
    import javax.swing.JMenuBar;
    import javax.swing.JMenu;
    import javax.swing.JMenuItem;
    import javax.swing.WindowConstants;
    public class Test extends JFrame {
        public Test() {
            super();
            setDefaultCloseOperation( WindowConstants.EXIT_ON_CLOSE );
            getContentPane().add( new Label( "Hello World" ) );
            JMenuBar mainMenu = new JMenuBar();
            setJMenuBar( mainMenu );
            JMenu helpMenu = new JMenu();
            mainMenu.add( helpMenu );
            helpMenu.setMnemonic( 'H' );
            helpMenu.setText( "Help" );
            JMenuItem help_about = new JMenuItem();
            helpMenu.add( help_about );
            help_about.setMnemonic( 'A' );
            help_about.setText( "About" );
            help_about.addActionListener(
                new ActionListener() {
                    public void actionPerformed( ActionEvent evt ) {
                        System.out.println( "HELP!" );
            pack();
            setLocationByPlatform( true );
            setVisible( true );
        public static void main( String[] args )
            throws Exception {
            java.awt.EventQueue.invokeLater(
                new Runnable() {
                    public void run() {
                        Test test = new Test();
    }

    In 10.1.3, there's an option to disable the splash screen on the Environment Page in preferences (although, of course, it's not much use if you never get to the main window because of the dialog popping up behind the splash screen... :) )
    The bug with the dialog appearing behind the splashscreen is fixed in the upcoming 11g release. FWIW, it's a problem that appears to be unique to X-based systems, where for some reason the splashscreen window ends up with some super-ueber topmost property that forces all other windows to go behind it.
    There's also a command line flag to suppress the splashscreen in 11g.
    Thanks,
    Brian

  • Oracle 8.1.5 (6?) interoperability with Java/C++ clients and various ORBs

    Hi
    Machine/OS: SGI VWS 540, 256MB RAM, Win2000
    Oracle: Oracle 8i (8.1.6)/Enterprise Edition Release 2
    Problem:
    I want to bind to a CORBA object (pureCORBA bank example) from c++.
    I found in the FAQ an article about the interoperability with c++. I downloaded an archieve with all the necessary code. But....
    I won't compile. It has been tested on Visibroker 3.2, but now i get compilation errors... (GIOP::ObjectKey CORBA::OctetSequence convertion).
    Is there an update of this article that uses 8i 8.1.6 and Visibroker 3.4 (that ships with 8.1.6). I compile it using MS VC++ 6.0 SP 4.
    I can make the current files compile, but then get a link error (login.lib uses stuff already defined in msvcrt.lib ....)
    Thank you
    Bart De Lathouwer

    Hi
    Machine/OS: SGI VWS 540, 256MB RAM, Win2000
    Oracle: Oracle 8i (8.1.6)/Enterprise Edition Release 2
    Problem:
    I want to bind to a CORBA object (pureCORBA bank example) from c++.
    I found in the FAQ an article about the interoperability with c++. I downloaded an archieve with all the necessary code. But....
    I won't compile. It has been tested on Visibroker 3.2, but now i get compilation errors... (GIOP::ObjectKey CORBA::OctetSequence convertion).
    Is there an update of this article that uses 8i 8.1.6 and Visibroker 3.4 (that ships with 8.1.6). I compile it using MS VC++ 6.0 SP 4.
    I can make the current files compile, but then get a link error (login.lib uses stuff already defined in msvcrt.lib ....)
    Thank you
    Bart De Lathouwer

  • Windows and Mac hostnames with Java.

    Hi,
    I'm not sure if this is the correct board or not for this, but I'm really getting frustrated, and I'm sure it's something easy for someone who knows.
    Anyway.. I'm working on some Java software for school, and I'm trying to get the program to run on my 2 machines (one is the MBP, and the other is a windows XP pc), but I'm having trouble having trouble finding one machine from the other (in either direction) because neither can seem to find the hostname of the other.
    On my Mac, from the Sharing panel I have set my local hostname to david.local. On my windows box, my hostname is david. I can ping myself on each machine, but when I try to hit the other, the hostname can't be found.
    Please help me figure this out. I know it has something to do with the naming, because I gotten this to work a couple of years ago for another project. Only.. it's been a while and I hadn't had to do it since then, so I've forgotten what I had to do back then to get it working.
    Any help with be greatly appreciated!
    David

    Hi Rick,
    I changed the Mac so it would be on Mshome (yes, I left it as the default in windows.. lol.)
    Rebooted both.. no dice.
    A question about this though.. can I still connect to other networks? I take my computer to school, and I have never had to change this before, and everything had worked smoothly.
    Oh! That reminds me. I can connect to shared folders on my Windows machine from my Mac with the Connect to Server from Finder. I do smb://david/<shared folder> and it all worked out just fine, without the workgroup being set. (Still works now, btw)
    Thanks,

  • Replacing windows new line characters with JAVA

    I am importing a file into the database... the file is written by a client using windows, and it is a text file.
    When there is a windows new line character at the end of the line (^M), it is getting saved to the database as part of the string value.
    When we parse this data to run a report, the (^M) are being written back out to the file and causing the fields and data not to line up.
    We want to REPLACE the ^M with some other character (whatever it doesn't matter)... how can java do that???
    We tried replacing '/n' with '###' and it will show the ###, but the line still breaks.
    TIA,
    Tonya

    The characters in question are cr = \r = ascii(13) and lf = \n = ascii(10). Windows uses CrLf, Unix uses Lf and some systems use just Cr. You can use the String.replaceAll or the pattern matching classes to fix this up, see java.util.regex.Pattern, and java.util.regex.Matcher.

  • Satellite X200 with Windowa 7 became slow with JAva 6 update 17

    After installing Windows 7 on my Satellite X200 I made the upgrade of Java from update 10 to update 17. The computer became very slow when ther a Java window opened in IE8. I uninstalled update 17 and installed update 10 again at no avail. Please help!

    I agree with you and will try to get an answer on a Java forum. I tried a recovery to an earlier date but the recovery failed, probably because I had already unninstalled the original java update 10. The same happened even after I reinstalled update 10 (which, by the way, is not shown on the list of programs of the Control Pane remove programs list.

  • Stub/Client Generation of WSDL for Windows Communication Foundation Service

    Hii,
    I am building a client for the WCF service using Soap1.2 and ws-security. I have tried building a stub for the service using JDeveloper 10 g and also tried to validate the wsdl using XML spy. Both are giving errors. I wanna know how could i genrate the stub for the service and also Validate WSDL? I know i might have to modify the WSDL, but dont know what changes must be required? And Also which std i must adhere?
    Here is the WSDL
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                      xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
                      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
                      xmlns:wsap10="http://www.w3.org/2005/08/addressing"
                      xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
                      xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
                      xmlns:i0="http://Corona.Services.UserMgmt.UserMgmtSrv"
                      xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/09/policy/addressing"
                      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                      xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"
                      xmlns:tns="http://tempuri.org/"
                      xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
                      xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"
                      xmlns:wsa10="http://www.w3.org/2005/08/addressing"
                      targetNamespace="http://tempuri.org/" name="UserMgmtSrv">
      <wsdl:import namespace="http://Corona.Services.UserMgmt.UserMgmtSrv"
                   location="http://debugger/Corona.Services/Corona.Services.svc?wsdl"/>
      <wsdl:types/>
      <wsdl:binding name="WSHttpBinding_UserMgmtSrv" type="i0:UserMgmtSrv">
        <wsp:PolicyReference URI="#WSHttpBinding_UserMgmtSrv_policy"/>
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="Authenticate">
          <wsdl:input>
            <soap12:body use="literal"/>
          </wsdl:input>
          <wsdl:output>
            <soap12:body use="literal"/>
          </wsdl:output>
          <wsdl:fault name="ArgumentExceptionFault">
            <soap12:fault name="ArgumentExceptionFault"
                          namespace="http://Corona.Services.UserMgmt.UserMgmtSrv.FaultException"/>
          </wsdl:fault>
        </wsdl:operation>
        <wsdl:operation name="SaveHealthProfileWrapper">
          <wsdl:input>
            <soap12:body use="literal"/>
          </wsdl:input>
          <wsdl:output>
            <soap12:body use="literal"/>
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="UserMgmtSrv">
        <wsdl:port name="WSHttpBinding_UserMgmtSrv"
                   binding="tns:WSHttpBinding_UserMgmtSrv">
          <soap12:address location="https://debugger/Corona.Services/Corona.Services.svc"/>
          <wsa10:EndpointReference>
            <wsa10:Address>https://debugger/Corona.Services/Corona.Services.svc</wsa10:Address>
          </wsa10:EndpointReference>
        </wsdl:port>
      </wsdl:service>
      <wsp:Policy wsu:Id="WSHttpBinding_UserMgmtSrv_policy">
        <wsp:ExactlyOne>
          <wsp:All>
            <wspe:Utf816FFFECharacterEncoding xmlns:wspe="http://schemas.xmlsoap.org/ws/2004/09/policy/encoding"/>
            <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
              <wsp:Policy>
                <sp:TransportToken>
                  <wsp:Policy>
                    <sp:HttpsToken RequireClientCertificate="false"/>
                  </wsp:Policy>
                </sp:TransportToken>
                <sp:AlgorithmSuite>
                  <wsp:Policy>
                    <sp:Basic128/>
                  </wsp:Policy>
                </sp:AlgorithmSuite>
                <sp:Layout>
                  <wsp:Policy>
                    <sp:Strict/>
                  </wsp:Policy>
                </sp:Layout>
                <sp:IncludeTimestamp/>
              </wsp:Policy>
            </sp:TransportBinding>
            <sp:EndorsingSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
              <wsp:Policy>
                <sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
                  <wsp:Policy>
                    <mssp:RequireCancel wsp:Optional="true"
                                        xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy"/>
                    <sp:BootstrapPolicy>
                      <wsp:Policy>
                        <sp:TransportBinding>
                          <wsp:Policy>
                            <sp:TransportToken>
                              <wsp:Policy>
                                <sp:HttpsToken RequireClientCertificate="false"/>
                              </wsp:Policy>
                            </sp:TransportToken>
                            <sp:AlgorithmSuite>
                              <wsp:Policy>
                                <sp:Basic128/>
                              </wsp:Policy>
                            </sp:AlgorithmSuite>
                            <sp:Layout>
                              <wsp:Policy>
                                <sp:Strict/>
                              </wsp:Policy>
                            </sp:Layout>
                            <sp:IncludeTimestamp/>
                          </wsp:Policy>
                        </sp:TransportBinding>
                        <sp:EndorsingSupportingTokens>
                          <wsp:Policy>
                            <sp:SpnegoContextToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
                              <wsp:Policy>
                                <mssp:RequireCancel wsp:Optional="true"
                                                    xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy"/>
                              </wsp:Policy>
                            </sp:SpnegoContextToken>
                          </wsp:Policy>
                        </sp:EndorsingSupportingTokens>
                        <sp:Trust10>
                          <wsp:Policy>
                            <sp:MustSupportIssuedTokens/>
                            <sp:RequireClientEntropy/>
                            <sp:RequireServerEntropy/>
                          </wsp:Policy>
                        </sp:Trust10>
                      </wsp:Policy>
                    </sp:BootstrapPolicy>
                  </wsp:Policy>
                </sp:SecureConversationToken>
              </wsp:Policy>
            </sp:EndorsingSupportingTokens>
            <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
              <wsp:Policy>
                <sp:MustSupportIssuedTokens/>
                <sp:RequireClientEntropy/>
                <sp:RequireServerEntropy/>
              </wsp:Policy>
            </sp:Trust10>
            <wsap10:UsingAddressing/>
          </wsp:All>
        </wsp:ExactlyOne>
      </wsp:Policy>
      <wsp:UsingPolicy/>
    </wsdl:definitions>

    I had the problem with JDev (9.0.4) when trying to generate server side classes from a homemade wsdl which took a complex type as a parameter. The only thing I got from JDeveloper was a class receiving an Element. Which pretty much means you have to do the work yourself.
    Quite disappointing....!
    I see to possibilities:
    1) If you are stuck with 9.0.4 you will have to parse to and from xml yourself. For this you can use jax-b which is a Sun API used to create classes for a given XML Schema to parse and validate XML. You have some work creating the classes, but it runs very fast when you have generated the classes.
    2) You use the topdown approach described on OTN. http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/doc-lit/index.html
    I think this is the example for OC4J (9.0.4). There is a new and improved version of the tool (wsa.jar) with the new OC4J (10.1.3)
    Have fun......and I am sure that Oracle quite soon will deliver the functionality directly from JDev....:-)
    /Peter

  • Oracle BPEL invoking Windows Communication Foundation Services

    Im right now studing the next generation of Microsoft technologies for SOA and WebServices. I correctly developed my first WCF service and was trying to invoke it using BPEL, but its not possible to do it. Anyone knows how to invoke a WCF service in BPEL? Im using wshttpBinding in my WCF service.
    Thanks for your time,
    Millan

    Can you post the whole binding configuration you are using. For default interoperability you should look at basicHttpbinding. In case you want to add things like Security with the wsHttpBinding keep in mind that Oracle BPEL only supports basic WS-Security

  • Fieldbus Foundation Interoperability with NI as LAS

    Hello,
    I use NI-FBUS V3.1.1 with a Softing FG100FF/M Modbus/TCP to FF Gateway.
    When the FBUS Interface is the LAS, I periodically get the Substatus "FaultStateActive" in Final Value of the DO and AO Transducer Blocks of the Softing Device.
    When the Softing Device is the LAS, the communication works fine.
    Using the "Optimizing" Function in the FBUS Configuratior changes the period of the "FaultStateActive" messages, but doesent prevent them from occurring.
    Does anybody have an idea, what the reason for this problem might be?
    Thanks,
    Berni

    It is interesting that you are using NI-FBUS Configurator with Softing FG100FF/M linking device; I only know the Configurator works well with Softing FG-100 FF/HSE linking device.
    You mentioned you set the FBUS interface as LAS, do you mean you have NI PCMCIA or PCI interface card connected to the FF H1 segment?
    If so, please make sure the Softing LD (or other FF host device) is not connected to the same H1 segment; or you can set the NI interface device as Basic Device to avoid LAS conflict with Softing linking device. Normally the linking device should be set as LAS in the FF H1 segment.
    If not, can you explain how did you connect Configurator and Softing FG-100 FF/M linking device? Did you connect them through Ethernet, or you have Configurator running with NI interface card and just connected the interface card with Softing linking device together?

  • Referencing WCF (Windows Communication Foundation) web services

    I am having some issues referencing a WCF based web service.
    Apex can consume the WSDL just fine, but when I attempt to use any of the methods I start running into errors.
    For example, there is a simple method that accepts a username and returns a facility ID. If I use the apex built-in web service test tool, I see the following request and response:
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    mlns:xsd="http://www.w3.org/2001/XMLSchema">
         <SOAP-ENV:Body><ns1:FetchRequest xmlns:ns1="http://microsoft.com/wsdl/types/"><ns1:UserName>TAUS461</ns1:UserName>
    /ns1:FetchRequest></SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault>
    <faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode><faultstring xml:lang="en-US">
    Procedure or function 'Prc_Fetch' expects parameter '@userName', which was not supplied.</faultstring><detail>
    <ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel"
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><HelpLink i:nil="true"/><InnerException i:nil="true"/>
    <Message>Procedure or function 'Prc_Fetch' expects parameter '@userName', which was not supplied.</Message><StackTrace>   at WA.Ecy.ADS.FS.Service.BusinessLogic.FacilitySiteBAO.Fetch(String userName) in
    C:\Projects\FS 2008\Development\Services\FS.Service\Source\Business Logic\FS.Service.BusinessLogic\FacilitySiteBAO.cs:line 418&#xD;
    at FS.Service.ServiceImplementation.FacilitySiteService.Fetch(FetchRequest request) in
    C:\Projects\FS 2008\Development\Services\FS.Service\Source\Service Interface\FS.Service.ServiceImplementation\GeneratedCodeFacilitySiteService.cs:line 1588&#xD;
       at SyncInvokeFetch(Object , Object[] , Object[] )&#xD;
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp; outputs)&#xD;
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)&#xD;
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)&#xD;
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&amp; rpc)&#xD;
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc&amp; rpc)&#xD;
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&amp; rpc)&#xD;
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc&amp; rpc)&#xD;
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</StackTrace><Type>System.Data.SqlClient.SqlException</Type></ExceptionDetail></detail></s:Fault></s:Body></s:Envelope>I get a similar error regardless of which method I attempt to call.
    So, I thought that I would try Jason Straub's [link FLEX_WS_API|http://jastraub.blogspot.com/2008/06/flexible-web-service-api.html] package. First I opened SOAPUI, pointed to the WSDL and generated a test request for the Fetch method. The request looked like this:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn: WA.Ecy.ADS.FacilitySite.Services">
       <soapenv:Header/>
       <soapenv:Body>
          <urn:FetchRequest>
             <!--Optional:-->
             <urn:UserName>TAUS461</urn:UserName>
          </urn:FetchRequest>
       </soapenv:Body>
    </soapenv:Envelope>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
       <s:Header>
          <ActivityId CorrelationId="dcdd3433-7f61-48f4-b3e3-c2a6647409d3" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel
    Diagnostics">2aeead53-c9df-41df-9a77-3798be030775</ActivityId>
       </s:Header>
       <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
          <FetchResponse xmlns="urn: WA.Ecy.ADS.FacilitySite.Services">
             <FacilitySiteId>99997167</FacilitySiteId>
          </FetchResponse>
       </s:Body>
    </s:Envelope>So far so good, SOAPUI can call and retrieve from this method. Now I put this into place with FLEX_WS_API
    declare
    l_env clob;
    l_url varchar2(1000) := 'http://ecydevws/FacilitySiteService/FacilitySiteService.svc'; -- dev web service URL
    l_response xmltype;
    p_username varchar2(30) := 'TAUS461';
    begin
         -- start creating the soap envelope
         l_env := '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn: WA.Ecy.ADS.FacilitySite.Services">
                 <soapenv:Header/>
                 <soapenv:Body>
                    <urn:FetchRequest>
                    <urn:UserName>'||p_username||'</urn:UserName>
                    </urn:FetchRequest>
                 </soapenv:Body>
              </soapenv:Envelope>';
         -- get the response
         l_response := flex_ws_api.make_request (
              p_url => l_url,
              p_action => 'http://WA.Ecy.ADS.FacilitySite.Services/Fetch',
              p_version => '1.1',
              p_envelope => l_env);
    -- for testing, put the respone into a table
    insert into ws_results values (l_response);
    end;Doing this,my response becomes
    <s:Envelope xmlns:s=
    "http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com
    ws/2005/05/addressing/none">a:ActionNotSupported</faultcode>
    <faultstring xml:lang="en-US">
    The message with Action 'http://WA.Ecy.ADS.FacilitySite.Services/Fetch' cannot be processed at the receiver, due to a ContractFilter
    mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver)
    or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same
    binding (including security requirements, e.g. Message, Transport, None).</faultstring></s:Fault></s:Body></s:Envelope>So it appears to me that the WCF service is expecting something else in soap header, but I am confused on why the SOAPUI call works as is.
    Does anyone with WCF knowledge have any ideas of how to get this to work or if the problem is even with WCF?
    Thanks, Tony

    as of now only file with wsdl extention is supported,

  • Windows Communication Foundation(WCF)

     Hi,
         i want to start WCF so what should i do first .
    Regards,
    Gopal Upadhyay

     Hi,
         i want to start WCF so what should i do first .
    Regards,
    Gopal Upadhyay
    You should buy a good book on WCF.

Maybe you are looking for