IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

SOA Discussion :

quelques soucis d'affichages a partir d'un wsdl


Sujet :

SOA

  1. #1
    Membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2010
    Messages
    87
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Morbihan (Bretagne)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2010
    Messages : 87
    Points : 48
    Points
    48
    Par défaut quelques soucis d'affichages a partir d'un wsdl
    Bonjour, J'ai un travail assez urgent a faire pour demain et j'aurai aimé la collaboration de quelqu'un pour m'aiguiller.

    Je me suis connecter a un env. soap pour afficher des réservations et des disponibilités d'hotel sur un site mais j'ai un peu de mal à poursuivre.

    Si quelqu'un peut m'aider je lui transmet mon msn en privée merci

  2. #2
    Membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2010
    Messages
    87
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Morbihan (Bretagne)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2010
    Messages : 87
    Points : 48
    Points
    48
    Par défaut
    La partie ou je coince pour l'instant est celle ci :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    		// Je parcours l'année en cours
    		            for($mois=1; $mois<13; $mois++)
    		            {
    
    		                // le nombre de jours de l'année courante en entière en 30 31 29 ...
    		                $nbreJours = GetNbDays(dateTransf($mois), date('Y'));
    
    
    
    						// Je parcours le nombre de jours dans le mois et dans l'année pour une chambre
    						for($jours=1; $jours<$nbreJours+1; $jours++)
    			            {
    			            	// Je crée la variable $date qui est le jour et le mois qui va etre parcouru
    							$date = dateTransf($jours) . '/' . dateTransf($mois);
    			             	echo $periodAB . ' - - ' . $periodAE;
    			            
                            	// LES PERIODES SAAISONS b, h, m ... //
                                
                                // Si la varaible date est comprise entre la période basse
                                // et la période Haute on affiche les prix 
    						   if($date >= $periodIB && $date <= $periodIE)
    						   {
    						   		echo '<td>';
    								echo $prixI.'€ I';
    								echo '</td>';
    						   }
    						   elseif($date >= $periodHB && $date <= $periodHE)
    						   {
    						   		echo '<td>';
    								echo $prixH.'€ H';
    								echo '</td>';
    						   }
    						   elseif($date >= $periodGB && $date <= $periodGE)
    						   {
    						   		echo '<td>';
    								echo $prixG.'€ G';
    								echo '</td>';
    						   }
    						   elseif($date >= $periodFB && $date <= $periodFE)
    						   {
    						   		echo '<td>';
    								echo $prixF.'€ F';
    								echo '</td>';
    						   }
    						   elseif($date >= $periodEB && $date <= $periodEE)
    						   {
    						   		echo '<td>';
    								echo $prixE.'€ E';
    								echo '</td>';
    						   }
    						   elseif($date >= $periodDB && $date <= $periodDE)
    						   {
    						   		echo '<td>';
    								echo $prixD.'€ D';
    								echo '</td>';
    						   }
    						   elseif($date >= $periodCB && $date <= $periodCE)
    						   {
    						   		echo '<td>';
    								echo $prixC.'€ C';
    								echo '</td>';
    						   }
    						   elseif($date >= $periodBB && $date <= $periodBE)
    						   {
    						   		echo '<td>';
    								echo $prixB.'€ B';
    								echo '</td>';
    						   }
    						   elseif($date >= $periodAB && $date <= $periodAE)
    						   {
    						   		echo '<td>';
    								echo $prixA.'€ A';
    								
    								echo '</td>';
    						   }
    						   else
    						   {
    						   		//echo 'erreur';
    						   }
    						}
    					}
    En fait j'ai du mal a faire apparaitre les période haute et basse sur l'année. Ca s'affiche un peu comme ca veut. La période 'periodAB' et 'periodAE' sont les date de debut et de fin : 01/01 et 07/04 et la variable $date est la date en cours que je parcours : du type 00/00 donc donc je compare les 3 variable et ca ne fait rien de bon.

    est ce que vous auriez une idée ??? merci

  3. #3
    Membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2010
    Messages
    87
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Morbihan (Bretagne)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2010
    Messages : 87
    Points : 48
    Points
    48
    Par défaut
    je peux transmettre le code à quelqu'un si ca intéresse pour voir l'ensemble Merci

  4. #4
    Membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2010
    Messages
    87
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Morbihan (Bretagne)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2010
    Messages : 87
    Points : 48
    Points
    48
    Par défaut
    J'ai avancé dans la récupération de donnée a partir du wsdl mais je suis de nouveau bloqué. Je dois envoyé au soap une date d'arrivée et une date de départ pour récupérer un montant que le soap va me calculer.

    En retour j'ai ce type d'erreur :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    [error] => Array
            (
                [errorNumber] => -1
                [exceptionType] => java.lang.NullPointerException
                [exceptionDetails] => net.****.webapp.mapping.MappingReaaaaBusiness.resaaaaaBooking(MappingResaaaaaBusiness.java:138)net.*****.webapp.impl.ResaaaaaaBookingSoapImpl.resaaaaaaBookingSave(ResaaaaBookingSoapImpl.java:134)net.****.webapp.impl.WebAppResaaaaaFrontSoapPortImpl.resaaaaaaBookingSave(WebAppResaaaaFrontSoapPortImpl.java:82)sun.reflect.GeneratedMethodAccessor3310.invoke(Unknown Source)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)java.lang.reflect.Method.invoke(Method.java:616)com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:246)com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:75)javax.servlet.http.HttpServlet.service(HttpServlet.java:637)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)java.lang.Thread.run(Thread.java:636)
            )
    est ce que l'erreur peut venir de ce j'envoie au soap ou alors c'est un prob d'un coté serveur ???

    Je sais que cet erreur veut dire que la définition est null

    Voila comment je l'envoie :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    /**
     * CONSTRUCTION DU TABLEAU CODE ResaaaaaaaPropertySearch POUR LES PARAMETRES
     **/
    
    
    //je passe en tableau le headerType de ma connexion dans
    // les varibales que je vais avoir besoin pour ma méthode
    $ResaaaaaBookingSave = array(
    
    		"header" 		=> array
    		(
    
    			"baseId" 			=> $headerType['baseId'],
    			"langInterface" 	=> $headerType['langInterface'],
    			"langContent" 		=> $headerType['langContent'],
    			"sessionUuid" 		=> $headerType['sessionUuid']
    		),
    
    		"resaaaaaBooking" 	=> array
    		(
    			"property"			=> array(
    
    				"propertyLabel"			=> "55"
    
    			),
    
      		/*	"bookingStatus"		=> array
    			(
    			   "id"						=>"101",
    			   "statusLabel" 			=>"",
    			   "statusOrder"			=>"",
                   "statusName" 			=>"",
                   "statusKey" 				=>"",
                   "statusDraft" 			=>"false",
                   "statusControled"		=>"false",
                   "statusReserved" 		=>"false",
                   "statusBooked" 			=>"false",
                   "statusCanceled" 		=>"false",
                   "forBooking" 			=>"false",
                   "forEvent" 				=>"false",
                   "enable" 				=>"false"
    
    			),
    		*/
    
    		"bookingStatusId"		=>"101",
    		"bookingDate"			=> "2012-02-09T11:34:55.000+01:00",
    		"bookingBegin"			=> "2012-03-10T11:34:55.000+01:00",
    		"bookingEnd"			=> "2012-03-15T11:34:55.000+01:00",
    		"countChildren"			=> "0",
    		"bookingComment"		=> "******",
    		"countAdults"			=> "2"
    		)
    
    
    		);
    
    // Je teste le retour
    //echo '<h2> ResaaaaaPropertySearch Resquest</h2><pre>'; print_r($ResaaaaPropertySearch); echo '</pre>';
    
    // appel de la methode ResaaaaaPropertySearch pour afficher
    // toutes les chambres et les dipos et les reservations
    $resultCodeBookingSave = $client->call('ResaaaaaaBookingSave', $ResaaaaaaaBookingSave);
    
    if ($client->fault)
    {
    	echo '<h2> ResaaaaaaBookingSave Fault</h2><pre>' . $resultCodeBookingSave . '</pre>';
    }
    else
    {
    	$err = $client->getError();
    	// Si pas ok
    	if ($err)
    	{
    		echo '<h2> ResaaaaaaBookingSave Error</h2><pre>' . $err . '</pre>';
    	}
    	// Si ok
    	else
    	{
    		echo '<h2> ResaaaaaBookingSave Done</h2><pre>'; print_r($resultCodeBookingSave); echo '</pre>';
    	}
    }
    
    
    echo '<h1>Flux SOAP</h1>';
    echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
    echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';
    
    if ($debug_show)
    {
    	echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
    }
    
    ?>
    Auriez vous une idée...??? Merci

Discussions similaires

  1. soucis d'affichage
    Par Tempotpo dans le forum AWT/Swing
    Réponses: 4
    Dernier message: 19/01/2006, 10h16
  2. affichage caractère à partir du code ascii
    Par capone dans le forum C++
    Réponses: 4
    Dernier message: 19/10/2005, 21h51
  3. [POSTGRES 8] [INSTALLATION] [DEBIAN] Quelques soucis
    Par julienOriano dans le forum PostgreSQL
    Réponses: 3
    Dernier message: 24/06/2005, 10h55
  4. [Swings]Quelques soucis à l'affichage !
    Par julienOriano dans le forum AWT/Swing
    Réponses: 3
    Dernier message: 23/09/2004, 13h22
  5. quelques soucis avec word 2000
    Par ramchou dans le forum Word
    Réponses: 3
    Dernier message: 06/09/2004, 18h13

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo