pass value from a form to web service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    pass value from a form to web service

    I use netbeans 6.5
    i know how to pass a value from a service to jsp page but i dont know how to pass a value from html form to a service?

    thank You
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by oll3i
    I use netbeans 6.5
    i know how to pass a value from a service to jsp page but i dont know how to pass a value from html form to a service?
    Read the parameter(s) from your HttpServletRequ est object.

    kind regards,

    Jos

    Comment

    • oll3i
      Contributor
      • Mar 2007
      • 679

      #3
      do i address the jsp site with the result in action of a form ?
      ok i think i know

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by oll3i
        do i address the jsp site with the result in action of a form ?
        ok i think i know
        The action of your form should be a url mapped as in your web.xml file; that particular servlet will be posted to. After collecting the relevant values from the form the servlet can pass on (forward) the stuff to another jsp again.

        kind regards,

        Jos

        Comment

        • vinot85
          New Member
          • Aug 2007
          • 53

          #5
          All you need to do is,
          1) GO to your JSP code window and right click there. You will find pop up window there. from there you can find a option called 'Call web service operation'.

          2)There will be a window asking you to specify the WSDL file location of your web service. Give it accordingly. Netbeans will create the proxy and program skeleton to access the web service via the proxy.

          3)Then specify the parameter accordingly in the skeleton and call the web service.


          Regards,
          Vinoth

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Originally posted by vinot85
            All you need to do is,[INDENT] 1) GO to your JSP code window and right click there. You will find pop up window there. from there you can find a option called 'Call web service operation'.
            What happens if I use Eclipse or just good ol' vi?

            kind regards,

            Jos

            Comment

            • oll3i
              Contributor
              • Mar 2007
              • 679

              #7
              when i add a "new web service client" to my client project i get

              "problem with downloading wsdl or schema file"?

              Comment

              • oll3i
                Contributor
                • Mar 2007
                • 679

                #8
                when i start the glassfish server i see

                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.securit y-service.message-security-config.SOAP.pro vider-config.XWS_Clie ntProvider.prop erty.signature. key.alias"
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.securit y-service.message-security-config.SOAP.pro vider-config.ClientPr ovider.property .signature.key. alias"
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.securit y-service.message-security-config.SOAP.pro vider-config.ClientPr ovider.property .security.confi g"
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.applica tions.lifecycle-module.JBIFrame work.property.c om.sun.jbi.home "
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "domain.applica tions.lifecycle-module.JBIFrame work.property.c om.sun.jbi.home "
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.securit y-service.message-security-config.SOAP.pro vider-config.XWS_Serv erProvider.prop erty.signature. key.alias"
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.securit y-service.message-security-config.SOAP.pro vider-config.XWS_Clie ntProvider.prop erty.dynamic.us ername.password "
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.securit y-service.message-security-config.SOAP.pro vider-config.ServerPr ovider.property .encryption.key .alias"
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.securit y-service.message-security-config.SOAP.pro vider-config.ClientPr ovider.property .dynamic.userna me.password"
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.securit y-service.message-security-config.SOAP.pro vider-config.ClientPr ovider.property .encryption.key .alias"
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.securit y-service.message-security-config.SOAP.pro vider-config.XWS_Clie ntProvider.prop erty.encryption .key.alias"
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.securit y-service.message-security-config.SOAP.pro vider-config.XWS_Serv erProvider.prop erty.encryption .key.alias"
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.securit y-service.message-security-config.SOAP.pro vider-config.ServerPr ovider.property .signature.key. alias"
                javax.managemen t.InstanceNotFo undException: No object matches the specified name "server.securit y-service.message-security-config.SOAP.pro vider-config.ServerPr ovider.property .security.confi g"

                what does it mean?

                Comment

                • oll3i
                  Contributor
                  • Mar 2007
                  • 679

                  #9
                  ok i didnt deploy the service that's why i got the error

                  Comment

                  Working...